473,499 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Posix semaphores

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
11 2983
"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
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
"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
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
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
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
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
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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2276
by: schneider jp | last post by:
Hi everybody For a project of system programming, we need to use semaphores, but i got some pbs... when I compile, i get perror with sem_open("machin", O_CREAT, 0666, 0); and perror says...
1
4683
by: Edwin New | last post by:
I have a requirement to run two separate postmasters on the one machine. It looks like they compete for resources (semaphores) so won't run concurrently. I compiled twice, specifying different...
23
5652
by: Boltar | last post by:
Hi I'm writing a threading class using posix threads on unix with each thread being run by an object instance. One thing I'm not sure about is , if I do the following: myclass::~myclass() {...
0
1127
arne
by: arne | last post by:
Hi, I am using Perl ithreads. The threads I create shall access a shared hash. In order to control access to the hash, I would like to use a semaphore. (BTW, does the hash need the protection at...
8
5606
by: Michele 'xjp' | last post by:
Hi there, I am using a POSIX-compliant system, Cygwin on Windows. I need the features of conio.h's getch() and clrscr(), but I can't compile programs with #include <conio.h(since conio.h is NOT...
0
1851
by: The Advocate | last post by:
Hello, how can we implement semaphores using monitors. I got how we can do it the way round. I did alot of search but couldnt find any implementation of semaphores using monitors,. Can anyone help me...
5
2689
by: davidcollins001 | last post by:
Hi, Firstly please excuse the long ramblingness. I need some conceptual help, I am trying to make two programs that are exactly the same but take it in turns to execute something, so the output...
1
297
by: Neal Becker | last post by:
Christian Heimes wrote: Does that provide semaphores between unrelated processes?
23
3303
by: asit | last post by:
what is the difference between portable C, posix C and windows C ???
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.