[M3devel] Downsides of Modula-3 ?
Dragiša Durić
dragisha at m3w.org
Fri Apr 27 19:30:29 CEST 2012
I do not doubt they are created. Probably not an issue with 3 threads here, 3 threads there, but it can be if one relies on "must be created after some arbitrary time" in any synchronization. I did, and SRC people did, at least in two places. I just don't see it as a good practice.
BTW, your test is excellent stress machine. My laptops hate it, probably, till now :). Right now I am focused on an allocation race issue and I hope to fix it in few hours/a day.
On Apr 27, 2012, at 7:13 PM, Mika Nystrom wrote:
> =?utf-8?Q?Dragi=C5=A1a_Duri=C4=87?= writes:
> ...
>> I am reading your source code just now. And one thing caught my eye: =
>> "Each type of thread starts by sleeping for a while, to give the other =
>> threads a chance to be created." Does not look like any guarantee to me, =
>> not in threaded application.=20=
>
> If the program prints "running" then all threads have been created.
>
> It eventually prints "running".
>
> Therefore all threads are created.
>
> ---
>
> The things wrong with CM3's pthreads threading are NOT subtle.
> The runtime completely freezes up, ctrl-C stops working, and other
> such things.
>
> Mika
More information about the M3devel
mailing list