[squeak-dev] The Inbox: CollectionsTests-jar.349.mcz

Jaromir m at jaromir.net
Mon Feb 8 19:27:27 UTC 2021


I propose a test to show the semantics of the two implementations of shared
queue ended up slightly different: SharedQueue2 implementation using the
Monitor checks the queue for available data while the SharedQueue
implementation based on the Semaphore checks for excessSignals > 0, which
results in these two different outcomes of the test:

SharedQueue2 produces a sequence #(5 10 15) while SharedQueue produces #(5
15 10) for the same code.

Regards,
Jaromir



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html


More information about the Squeak-dev mailing list