LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-20-2010, 10:17 PM   #1
boldeagle
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, 08:28 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
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.
 
  


Reply


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 10:12 AM
[SOLVED] syncronize clocks of two computers Buddhike G Linux - Software 5 01-03-2008 05:46 AM
Can syncronize PDA to Linux? Vegetarian Smoker Linux - Software 2 06-29-2006 04:20 AM
Syncronize Clocks newuser455 Linux - Newbie 2 07-15-2005 08:23 PM
How to syncronize/backup my home directory? blixel Linux - General 3 10-20-2003 10:21 PM


All times are GMT -5. The time now is 03:06 AM.

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