Changeset 3cad97060519ce6609a7c40c09939ca0941ed63a
Commiter: Charles Childers
Author: Charles Childers
Parent: dd551d7192
(2010/03/12 23:48) Almost 2 years ago
update concurrency library
Commiter: Charles Childers
Author: Charles Childers
Parent: dd551d7192
(2010/03/12 23:48) Almost 2 years ago
update concurrency library
: :go ( a- ) 1 13 out wait ; ( start new core with ip set to a ): :go ( a- ) 1 13 out wait ; ( start new core with ip set to a ): go ( "- ) ' :go ; ( parse next word and run it on a new core ): go ( "- ) ' 0; :go ; ( parse a word and run it on a new core ): ->c ( xy- ) 2 out wait ; ( send x to channel y ): ->c ( xy- ) 2 out wait ; ( send x to channel y ): c-> ( x-y ) 1 out wait 1 in ; ( receive y from channel x ): c-> ( x-y ) 1 out wait 1 in ; ( receive y from channel x ): cores ( -x ) -7 5 out wait 5 in ; ( number of running cores ): delchan ( x- ) dup 1 out 2 out wait ; ( delete channel )