Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2010, 11:17 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
how to use semaphore to syncronize processes?

If uses SEM_UNDO flag,a ERANGE error will appear,if not,the process can't release resource. any idea?
Old 07-22-2010, 09:28 PM   #2
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779
Your question is more than a little vague. Are you trying to write a multiprocess program using semaphores to synchronize resources? If so, a good book with some examples is Beginning Linux Programming. There have been several editions of it, some of which have been released free to the public for download.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncronize directories in 3 machines lucazorzi Linux - Software 2 05-12-2009 11:12 AM
[SOLVED] syncronize clocks of two computers Buddhike G Linux - Software 5 01-03-2008 06:46 AM
Can syncronize PDA to Linux? Vegetarian Smoker Linux - Software 2 06-29-2006 05:20 AM
Syncronize Clocks newuser455 Linux - Newbie 2 07-15-2005 09:23 PM
How to syncronize/backup my home directory? blixel Linux - General 3 10-20-2003 11:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration