LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-07-2004, 05:06 AM   #1
mojozoox
LQ Newbie
 
Registered: Jul 2003
Location: India
Distribution: RedHat 8
Posts: 9

Rep: Reputation: 0
Semaphores help


Help with finding resources on programming with semaphores gcc!
 
Old 01-07-2004, 08:41 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 65
You can always start out with the Dining Philosophers problem. Doing a google search will produce about 10000 web sites with java applets that show it in action and in depth explinations of how it works. I remember my first CS professor freshmen year in college using that problem to teach semaphore logic. It is best to make sure you have a good understand of what a semaphore is, and what the problems associated with them can be logically before you start trying to write code. It can be super frustrating when you have a stalled semephore and just can't figure out why.

I would recommend a book but quite honestly I haven't read one that I felt was easy enough to understand unless you already know what a semaphore is.....

This link has some info as well. And try reading the man page on semget, semop, and semctl.

Last edited by jtshaw; 01-07-2004 at 08:54 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
binary semaphores dzhigit Programming 4 05-25-2005 08:57 PM
questions on semaphores feetyouwell Programming 3 10-03-2004 09:55 PM
What are lightweight semaphores ? indian Programming 6 10-02-2004 07:48 AM
What is Semaphores? imsajjadali Red Hat 3 04-23-2004 01:26 AM
semaphores charles_sjc Linux - Software 2 12-06-2003 12:15 AM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration