Another great example. Thank you very much!
I had to evaluate the whole thing inside of a [ ... ] fork, in order to see
the updates in the Transcript...
2012/11/2 David T. Lewis
> On Fri, Nov 02, 2012 at 07:40:08PM +0100, Bert Freudenberg wrote:
> > On 2012-11-02, at 19:24, Sebastian Nozzi wro
On Fri, Nov 02, 2012 at 07:40:08PM +0100, Bert Freudenberg wrote:
> On 2012-11-02, at 19:24, Sebastian Nozzi wrote:
>
> > Thanks!
> >
> > Didn't know it was so simple... I was kind of intimidated by "wait".
> > Thought, well, that it suspended the thread no matter what.
> >
> > Another questio
Hey, cool, thanks a lot!
El 02/11/2012, a las 19:40, Bert Freudenberg escribió:
> On 2012-11-02, at 19:24, Sebastian Nozzi wrote:
>
>> Is it possible to have one thread wait for 2 other threads to finish? Would
>> it also be solved with Semaphores like this?
>>
>> s1 := Semaphore forMutualEx
On 2012-11-02, at 19:24, Sebastian Nozzi wrote:
> Thanks!
>
> Didn't know it was so simple... I was kind of intimidated by "wait". Thought,
> well, that it suspended the thread no matter what.
>
> Another question, out of curiosity:
>
> Is it possible to have one thread wait for 2 other threa
Thanks!
Didn't know it was so simple... I was kind of intimidated by "wait". Thought,
well, that it suspended the thread no matter what.
Another question, out of curiosity:
Is it possible to have one thread wait for 2 other threads to finish? Would it
also be solved with Semaphores like this?
On 2012-11-02, at 18:42, Sebastian Nozzi wrote:
> Hello Dear Squeakers,
>
> threads and co. are giving me headaches :-) I wanted to ask for advice...
>
> What do I use in Squeak to prevent more than one thread entering a region,
> but "releasing" the exclusivity in another block/callback? For
Hello Dear Squeakers,
threads and co. are giving me headaches :-) I wanted to ask for advice...
What do I use in Squeak to prevent more than one thread entering a region, but
"releasing" the exclusivity in another block/callback? For example, let's
suppose there is an hypothetical class "Lock"