| Author |
Message |
raghu
Guest
|
Posted:
Thu Dec 22, 2005 5:15 pm Post subject:
Meaning |
|
|
Can anyone give me the meaning of semaphore and queues?For what sake it
is used?I checked in the site but not understood properly. |
|
| Back to top |
|
 |
Kurt Harders
Guest
|
Posted:
Thu Dec 22, 2005 5:15 pm Post subject:
Re: Meaning |
|
|
Hi,
raghu wrote:
| Quote: | Can anyone give me the meaning of semaphore and queues?For what sake
it is used?I checked in the site but not understood properly.
|
Semaphores are flags with an atomic test&set operation. That means, if
one process want to have a ressource, it checks wether this resource
ist free and if it is free it will set it occupied. This test&set may
not be interrupted, because if in the interrupt the state changes, the
check is incorrect. Semaphores are used for all ressource not shareble.
Queues are data structures with an atomic put and get. So if one
process puts something in the queue this something will not get mixed
up with any other something put in the queue. Queues are used to pass
data from many processes to one process.
Regards, Kurt
--
Kurt Harders
PiN -Präsenz im Netz GITmbH
mailto:news@kurt-harders.de
http://www.pin-gmbh.com |
|
| Back to top |
|
 |
Stefan Näwe
Guest
|
Posted:
Thu Dec 22, 2005 5:15 pm Post subject:
Re: Meaning |
|
|
raghu wrote:
| Quote: | Can anyone give me the meaning of semaphore and queues?For what sake it
is used?I checked in the site but not understood properly.
|
Which of the ~2500000 hits when googling for 'semaphore'
doesn't give you enough information ?
Which 'site' did you check?
/S
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de |
|
| Back to top |
|
 |
Deep Reset
Guest
|
Posted:
Thu Dec 22, 2005 9:05 pm Post subject:
Re: Meaning |
|
|
Semaphore is a signalling system, using flags and arm positions to denote
alphanumeric characters.
The CND (Campaign for Nuclear Disarmament) symbol is an overlay of the
diagrams for the semaphore letters "C" "N" "D".
Queues are mechanisms for sucking the lifeblood out of shoppers or post
office customers.
HTH
BTW, when is our homework assignment due? |
|
| Back to top |
|
 |
Nora
Joined: 29 Aug 2005
Posts: 3
|
Posted:
Thu Dec 29, 2005 10:41 pm Post subject:
|
|
|
I come to this forum sometimes to read and learn and find that there are some posts making fun of people who are asking questions.
Also- I really don't want to learn the wrong information. As in I'm thinking some of the replies to this post are poking fun and give incorrect info.
Is this forum only for the very advanced or the very educated? If so I think it is a mistake, because those of us beginners will someday be able to tutor others.
NNN |
|
| Back to top |
|
 |
Nora
Joined: 29 Aug 2005
Posts: 3
|
Posted:
Thu Dec 29, 2005 10:44 pm Post subject:
|
|
|
Oh- and even if you look on google, the answer to a simple question is usually clearer when explained by an experienced programmer in simple language.
I think if you think someone didn't understand enuf of what they read on google don't say anything- why make learning a negative thing?
NNN |
|
| Back to top |
|
 |
|
|
|
|