[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: another try at multithreading
- From: "Javier Guerra" <javier@...>
- Date: Wed, 25 Jun 2008 17:00:04 -0500
On Wed, Jun 25, 2008 at 4:51 PM, David Given <dg@cowlark.com> wrote:
> t = tuple() --- access Linda tuplespace (traditionally, Linda only has
> one)
>
> Thread 1:
> t.foo = 1 -- writes value to tuplespace
> t.foo = 2 -- blocks until the slot is vacant, then writes
>
> Thread 2:
> print(t.foo) -- blocks until the slot is full, and consumes it,
> returning the value
> print(t.foo) -- blocks again
looks like a namespace for named queues, right?
--
Javier