multithreading 1.已添加synchronized 2.已添加semaphore,但有bug:输出和output有出入(差距不大待考证);运行多次时偶尔会死循环。 3.通过生产者消费者的思路已经解决了问题。
-
Notifications
You must be signed in to change notification settings - Fork 0
L-Qichen/Comp346_A2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
multithreading
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published