By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,837 Members | 1,637 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,837 IT Pros & Developers. It's quick & easy.

Posix semaphores

P: n/a
Hello,

I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.

I have not seen it defined in the posix specification I have found, but
I have maybe missed something.

Thanks in advance.

FiLH

--
Le fondement du constat bourgeois, c'est le bon sens, c'est-à-dire
une vérité qui s'arrête sur l'ordre arbitraire de celui qui la parle.
Roland Barthes.
http://www.filh.org
Nov 15 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3r924.rmwehsgf97rrN%fi**@filh.orgie...
I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.


This is beyond the scope ot the C programming language with which this group
deals. Try posix/unix-related group instead.

Alex
Nov 15 '05 #2

P: n/a
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3r924.rmwehsgf97rrN%fi**@filh.orgie...
I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.


This is beyond the scope ot the C programming language with which this group
deals. Try posix/unix-related group instead.


Which one dear ?

FiLH

--
Le fondement du constat bourgeois, c'est le bon sens, c'est-à-dire
une vérité qui s'arrête sur l'ordre arbitraire de celui qui la parle.
Roland Barthes.
http://www.filh.org
Nov 15 '05 #3

P: n/a
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3rce9.uk3bam6uzytjN%fi**@filh.orgie...
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3r924.rmwehsgf97rrN%fi**@filh.orgie...
I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.


This is beyond the scope ot the C programming language with which this group deals. Try posix/unix-related group instead.


Which one dear ?


Not this one, that's for sure. Try searching through
http://groups.google.com.

Alex
Nov 15 '05 #4

P: n/a
fi**@filh.orgie (FiLH) writes:
I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.

I have not seen it defined in the posix specification I have found, but
I have maybe missed something.


Try comp.unix.programmer.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #5

P: n/a
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3rce9.uk3bam6uzytjN%fi**@filh.orgie...
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3r924.rmwehsgf97rrN%fi**@filh.orgie...
> I would like to know if posix semaphores are inter processes or just
> semaphores for threads inside the same process.

This is beyond the scope ot the C programming language with which this group deals. Try posix/unix-related group instead.


Which one dear ?


Not this one, that's for sure. Try searching through


So, you are juste speaking about forums that you don't even know if they
exist ?

Hum... do you have any valuable information ?

Or you are just one of theese wanabee cop that is trying to get some ego
boost ?

Btw I don't really understand why the C forum is not a place to discuss
about the C normalized libraries.

FiLH

P.S. THere is no posix dedicated group, I checked before posting here.

--
Le fondement du constat bourgeois, c'est le bon sens, c'est-à-dire
une vérité qui s'arrête sur l'ordre arbitraire de celui qui la parle.
Roland Barthes.
http://www.filh.org
Nov 15 '05 #6

P: n/a
Keith Thompson <ks***@mib.org> wrote:
fi**@filh.orgie (FiLH) writes:
I would like to know if posix semaphores are inter processes or just
semaphores for threads inside the same process.

I have not seen it defined in the posix specification I have found, but
I have maybe missed something.


Try comp.unix.programmer.


Thanks.

FiLH
--
Le fondement du constat bourgeois, c'est le bon sens, c'est-à-dire
une vérité qui s'arrête sur l'ordre arbitraire de celui qui la parle.
Roland Barthes.
http://www.filh.org
Nov 15 '05 #7

P: n/a
fi**@filh.orgie (FiLH) writes:
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3rce9.uk3bam6uzytjN%fi**@filh.orgie...
> Alexei A. Frounze <al*****@chat.ru> wrote:
> > "FiLH" <fi**@filh.orgie> wrote in message
> > news:1h3r924.rmwehsgf97rrN%fi**@filh.orgie...
> > > I would like to know if posix semaphores are inter processes or just
> > > semaphores for threads inside the same process.
> >
> > This is beyond the scope ot the C programming language with
> > which this group deals. Try posix/unix-related group instead.
>
> Which one dear ?
Not this one, that's for sure. Try searching through


So, you are juste speaking about forums that you don't even know if they
exist ?

Hum... do you have any valuable information ?

Or you are just one of theese wanabee cop that is trying to get some ego
boost ?

Btw I don't really understand why the C forum is not a place to discuss
about the C normalized libraries.


I don't know what you mean by "C normalized libraries", but the C
standard does not support semaphores, threads, or processes. POSIX is
a separate standard.

Not everyone here can be expected to know about all the other
newsgroups where a question might be topical.

When we tell people that certain things are off-topic here, it's not
because we're "wanabee cops". It's because standard C is the area we
know about, and there are other newsgroups for more system-specific
topics where you're more likely to get good answers (and those answers
are more likely to be checked for accuracy by other experts).
P.S. THere is no posix dedicated group, I checked before posting here.


Alexei suggested a "posix/unix-related group". I see at least 56
newsgroups with "unix" in their names. Of them, comp.unix.programmer
is probably the best for your purposes. comp.programming.threads is
another good possibility. You should browse the archives of both
groups, and read their FAQs if you can find them, before posting.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #8

P: n/a
FiLH wrote:
Alexei A. Frounze <al*****@chat.ru> wrote:
"FiLH" <fi**@filh.orgie> wrote in message
news:1h3rce9.uk3bam6uzytjN%fi**@filh.orgie...
Alexei A. Frounze <al*****@chat.ru> wrote:
<snip>
deals. Try posix/unix-related group instead.

Which one dear ?
Not this one, that's for sure. Try searching through


So, you are juste speaking about forums that you don't even know if they
exist ?


He probably know that they exist but he might not know the names of them.
Hum... do you have any valuable information ?
That this is the wrong group is valuable information. He also suggested
unix groups which you obviously had not thought of looking for so that
was also valuable information which you have chosen to ignore.
Or you are just one of theese wanabee cop that is trying to get some ego
boost ?
No, he is trying to keep the group useful by keeping it topical.
Btw I don't really understand why the C forum is not a place to discuss
about the C normalized libraries.
They are not C libraries, they are POSIX libraries.
FiLH

P.S. THere is no posix dedicated group, I checked before posting here.


There are, however, plenty of Unix groups, both generic ones such as
comp.unix.programmer and ones dedicated to specific Unix variants. There
is also comp.programming which would probably have been a better place
to start given that you could not find the correct group.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 15 '05 #9

P: n/a
Hi group!!
Well i would like to just say that don't just stop replying if the
answer is known by somebody in the group.
As far as i know the POSIX and MUTEX threads are related to the
processes in the unix environment.Separate programs are written to
handle them.
Semaphores are just like FLAGS in the processes.They help to indicate
the switching of processes.
http://docs.sun.com/app/docs/doc/817...jum5sg7?a=view
they say it is interprocess

Nov 15 '05 #10

P: n/a
"cogno_byte" <b.************@gmail.com> writes:
Well i would like to just say that don't just stop replying if the
answer is known by somebody in the group.
That's bad advice. This newsgroup is for discussion of standard C,
not for discussion of anything and everything vaguely related to C.

If someone asks a system-specific question, redirecting them to a more
appropriate newsgroup is the best thing we can do.
comp.unix.programmer, for example, is full of Unix experts;
comp.lang.c isn't.
As far as i know the POSIX and MUTEX threads are related to the
processes in the unix environment.Separate programs are written to
handle them.


As far as you know. If you've guessed wrong (we all make mistakes),
nobody here will necessarily be able to correct your errors. In a
newsgroup where it's topical, the local experts will be sure to check
whatever you write.

Apparently you haven't even been following this newsgroup. If you
had, you would know how to post a proper followup using Google Groups.
Search this group for "google context" for more information.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #11

P: n/a
On Sat, 1 Oct 2005 20:40:14 +0200, in comp.lang.c , fi**@filh.orgie
(FiLH) wrote:
Alexei A. Frounze <al*****@chat.ru> wrote:

Not this one, that's for sure. Try searching through
So, you are juste speaking about forums that you don't even know if they
exist ?


Its equally possible that Alexei knows perfectly, but also knows that
giving a man a fish will only feed him for a day.

One could of course reply that apparently you are just too lazy to
search for yourself.
Hum... do you have any valuable information ?
You already got that.
Or you are just one of theese wanabee cop that is trying to get some ego
boost ?
whereas you're presumably one of these wannabee buttheads who is
trying to antagonise an entire group of posters? :-)
Btw I don't really understand why the C forum is not a place to discuss
about the C normalized libraries.
Because semaphores are not part of C. Thats the other valuable
information you got.
P.S. THere is no posix dedicated group, I checked before posting here.


comp.unix.programmer is pretty close tho.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 15 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.