Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - IPC - shared mutexes, ...: (6 Items)
   
IPC - shared mutexes, ...  
Hello,
I m'searching for documentation about IPC.

Specifically the shared  memory between processes, mutex shared, and messages passing.
I do not know in advance the ID Threde.
Have I to use "name_attach"? How does it work? Thank you
RE: IPC - shared mutexes, ...  
Hello, Nicolas.

I'm not sure how much you already know about IPC on Neutrino -- given
that you already know about name_attach() -- but here's a link to the
chapter on IPC in the System Architecture guide:

  http://www.qnx.com/developers/docs/6.4.0/neutrino/sys_arch/ipc.html

It should give you an introduction to the various methods and point you
to other places in the documentation for more details.

As for name_attach(), you use it to create a channel and associate a
path with it. Other processes can then use that name to establish a
connection to your process. Here's a link to the documentation for
name_attach():

 
http://www.qnx.com/developers/docs/6.4.0/neutrino/lib_ref/n/name_attach.
html

It includes some sample code that I hope will help you.

Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems 
Re: RE: IPC - shared mutexes, ...  
I've read this chapter.
But all examples are for threads into one processus.
I want to use mutexes from differents processus.

Is it possible to assigned a mutex to a fiile ?
/dev/... ?
RE: RE: IPC - shared mutexes, ...  
No, the mutex must be located in shared memory.

> -----Original Message-----
> From: Nicolas PIEQUET [mailto:community-noreply@qnx.com]
> Sent: December-19-08 9:37 AM
> To: momentics-community
> Subject: Re: RE: IPC - shared mutexes, ...
> 
> I've read this chapter.
> But all examples are for threads into one processus.
> I want to use mutexes from differents processus.
> 
> Is it possible to assigned a mutex to a fiile ?
> /dev/... ?
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post19038
> 
Re: RE: RE: IPC - shared mutexes, ...  
How can I do that ?
RE: RE: RE: IPC - shared mutexes, ...  
Read the documentation on shared memory.  Once you`ve done that you should be able to figure out how to create a shared 
memory region into which you put the mutex for all involved processes to access.


> -----Original Message-----
> From: Nicolas PIEQUET [mailto:community-noreply@qnx.com]
> Sent: December-19-08 9:45 AM
> To: momentics-community
> Subject: Re: RE: RE: IPC - shared mutexes, ...
> 
> How can I do that ?
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post19041
>