Re: RFC 86 (v1) IPC Mailboxes for Threads and Signals

[email protected] (Chaim Frenkel) 10 Aug 2000 19:54:40 -0400
Newsgroups perl.perl6.language.flow
Message-ID <[email protected]>
How does this look different from an inter-thread visible array
treated as a queue?

	Thread A
		push(@workqueue, $val)

	Thread B
		$val = pop(@workqueue)

Where accessing the global variable is guaranteed by perl to be atomic.

(i.e. Do we need another construct?)

<chaim>

>>>>> "PRL" == Perl6 RFC Librarian <[email protected]> writes:

PRL> This and other RFCs are available on the web at
PRL>   http://dev.perl.org/rfc/

PRL> =head1 TITLE

PRL> IPC Mailboxes for Threads and Signals

PRL> =head1 VERSION

PRL>     Maintainer: Uri Guttman <[email protected]>
PRL>     Date: 09 Aug 2000
PRL>     Version: 1
PRL>     Mailing List: [email protected]
PRL>     Number: 86

PRL> =head1 ABSTRACT

PRL> An IPC mailbox is a simple way for threads (or possibly processes) to
PRL> communicate without the mess of directly dealing with
PRL> semaphores/mutexes/queues.

-- 
Chaim Frenkel					     Nonlinear Knowledge, Inc.
[email protected]				               +1-718-236-0183