This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
it's better to replace sleep() by singlelock. for putvalue: inputlock[in].lock;value[in] = i;ouputlock[in].unlock;in=(in+1)%QUEUESIZE. for getvalue: outputlock[out].lock;result = value[out];inputlock[out].unlock;out=(out+1)%QUEUESIZE.
scorpio
(scorpio)
(#89008@0)
Last Updated: 2001-6-3
Sign in and Reply
Share
Share Online by QR Code
Report
Replies, comments and Discussions:
Computer Jobs need true skills----see these assignments, please
枫下论坛主坛
/
工作学习
/
IT技术讨论