Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Malware devs embrace open-source

A tale of two distros: Ubuntu and Linux Mint

Raspberry Pi benchmarked against Beagleboard, low price is long term

20 popular Ubuntu Linux apps you may want to try

A Selection of the Very Best Open Source Tutorials and Tools

Android Ice Cream Sandwich ported to x86 tablets, netbooks and notebooks

SECURITY: Google Chrome 17 Improves Security

How to read a CSV file in Perl?

Red Hat Brings Gluster to Amazon Cloud

New Linux kernel fixes power-saving issues



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:Handling Semaphores in C Programs
Handling Semaphores in C Programs
Jun 2, 2009, 09 :03 UTC (6 Talkback[s]) (7539 reads)

(Other stories by Jim Sansing)

[ Thanks to JJS for this link. ]

"What I have found in programming books, including those by the late W. Richard Stevens (which I turn to most often) is usually a good start, but never the whole story. But since this is not a general programming text, I will focus on a single issue in detail. This post will cover using semaphores.

"First, a little background on locks, in case you have never used them. In *nix, process locks are implemented with the semaphore system calls. Since I use child processes that share memory, I have to implement semaphores. Threads use pthread_mutex calls, which do essentially what these functions do, and then some."

Complete Story

Related Stories:
KernelTrap: Discussions on Real Time(Oct 13, 2004)
KernelTrap: Measuring Scheduler Improvements(Sep 22, 2003)
Realeyes IDS 0.9.5 Released(May 29, 2009)
Command Line vs. GUI Reality Check(Apr 30, 2009)
Database Security(Mar 18, 2009)
Editor's Note: Instead of Throwing Everyone In Jail, Fix Your Lousy Products(Dec 05, 2008)
Punishment vs. Prevention(Dec 05, 2008)
Building a Debian GNU/Linux Package(Sep 22, 2008)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
This text is about using SysV 'semap ...   More modern way.   
Rainer Weikusat
Jun 2, 2009, 11:51:31
 
> Unrelated: In my opinion, it is a bad  ...   Re: More modern way.   
mouse
Jun 2, 2009, 13:09:58
 
> > Unrelated: In my opinion, it is a ba ...   Re: Re: More modern way.   
Rainer Weikusat
Jun 2, 2009, 13:53:14
 
> > > Unrelated: In my opinion, it is a  ...   Re: More modern way.   
mouse
Jun 2, 2009, 16:51:26
 
Rainer, I find your response work provok ...   Re: Re: More modern way.   
JJS
Jun 2, 2009, 18:28:58
 
sir,would you please send me the  best l ...   SEMAPHORE   
DiliP
Jun 9, 2011, 12:17:47
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP