Concurrency Proposal

Tony Garnock-Jones tonyg at lshift.net
Tue Mar 14 11:17:47 PST 2006


Tony Garnock-Jones wrote:
> I thought of an even more evil way just now, which may even be
> practical: allocate some shm, fork, and in the child, repeatedly touch
> the shm and sleep for a few milliseconds. In the parent, check the shm
> just like a normal memory access, on the occasional backward branch.

Or use pthreads, with the central idea of a separate thread to do the
timer stuff. May even work on Windows and Mac that way.

Tony



More information about the Slate mailing list