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

Reply via email to