OpenAmiga (488/959)

From:Patrick Roberts
Date:18 Aug 2000 at 01:44:55
Subject:Re: AMIOPEN: Sockets, Mailboxes, Mutexes, etc...

GREAT INFO. Thanks!!!

-Pat

Jesse McClusky wrote:
>
> (looks like Amiga's server was down last night, or my DNS server was...)
>
> > From: "Patrick Roberts" <artix@pacbell.net>
> >
> > Could someone explain or point me to the documentation that describes the
> > differences between interprocess communication in the SDK. I've only ever
> > dealt with sockets and pipes... what do mutexes and mailboxes offer over
> > sockets and pipes?
>
> Mutexes (and semaphores) are a means of locking access to a chunk of
> memory while performing an operation on the memory that you can't
> allow to be interrupted by other threads that may be reading or writing
> to it. (Semaphores can allow more than one access at a time.)
> See page 158 in the SDK book, or /sys/kn/mtx/api.html and
> /sys/kn/sem/api.html
>
> Mailboxes are similar to message ports in the classic Amiga.
> They provide a means of sending data back and forth between
> threads, even if those threads are on another machine. Unlike
> the Amiga though, they are not named, so you can't do a find
> on one.
> See page 159 in the SDK book, or /sys/kn/mbox/api.html
>
> Named Data Areas might also be of interest, but they seem to
> be unaccountably limited to a single processor... (Dev Team:
> any idea on what to use for NDAs across processors or
> machines?)
> See page 165 in the SDK book, or /sys/kn/nda/api.html
>
> Jesse
>
> Subscribe/Unsubscribe: open-request@amiga.com
> Amiga FAQ: http://www.amiga.com/faq.html
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html