<div dir="ltr"><div>Hi all,</div><div><br></div><div>In the method Process>>resume, which invokes primitive 87, the comment states that the primitive should fail if the process is already waiting in a queue.</div><div>But the implementation does not do that. If we execute (inspect) the snippet:</div><div><br></div><div>   | evaluationProcess result delay testProcess |<br>        delay := Delay forMilliseconds: 50.<br>   testProcess := Processor activeProcess.<br>       evaluationProcess := [<br>  delay unschedule.<br>  result := testProcess isBlocked.<br>  testProcess resume] fork.<br>       delay wait.<br>   result</div><div><br></div><div>it returns true (and no primitive failed error occurs), which means we successfully resumed a blocked (waiting on a semaphore) process.</div><div>I also checked in VMMaker and indeed, the code does not check if the process is on a queue or not before just putting it on a runnable list.</div><div><br></div><div>What do you think? Should the comment be changed or the implementation?</div><div><br></div><div>Florin<br></div></div>