Replacing Semaphores with Mesa Monitors
avi at beta4.com
Thu May 13 07:39:58 UTC 2004
On May 13, 2004, at 12:29 AM, Andrew P. Black wrote:
> Yes, that is of course right. It would be impractical to go "cold
> turkey". I don't know enough about the way that signals or
> interrupts are translated into Squeak to comment on whether it would
> be a problem for the VM to support both mechanisms for a while. I was
> hoping that the representations could be close enough that the VM
> wouldn't have to care which it was signalling - which is when I came
> up against the problem that care or not, it decided to insert an
> explicit test.
It would be fairly easy to build a VM without these checks. If you
load VMMaker, you can see them in Interpreter>>primitiveSignal and
Interpreter>>primitiveWait. Comment out the checks, and follow the
VMMaker docs to regenerate the sources and rebuild.
If you happen to be on Mac OS X I can try to build a VM for you, just
let me know.
More information about the Squeak-dev