I'll probably write the wiki page while taking the bus to work next week, but for now I'm unaware of any issues and have a working example.

There's a test.scm file in the repo that gives a quick rundown on how to use a (non-shared) semaphore. That is to say, if you're using fork() and only wish to synchronize processes in this sub-tree then you should be good with the example in test.scm.

If you wish to synchronize unrelated processes then you'll need to use posix-shm to store the semaphores. This O'Reilly page gives a good walk through:
http://www.linuxdevcenter.com/pub/a/linux/2007/05/24/semaphores-in-linux.html?page=5

-Dan

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to