User: Password:
Subscribe / Log in / New account

What's the problem?

What's the problem?

Posted Oct 28, 2010 14:33 UTC (Thu) by nix (subscriber, #2304)
In reply to: What's the problem? by khim
Parent article: Ghosts of Unix Past: a historical search for design patterns

Yeah, you could use futexes, if you didn't mind being totally nonportable off Linux.

A more portable approach with essentially no downsides is to pass the fd of a pipe to your recipient process, and use its blocking behaviour when empty to implement your semaphore.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds