in reply to Re^11: threads on Windows
in thread threads on Windows
Are you implying that we should have said
No. Because that would be equally naive, and incorrect. (And this is anything but pedantry.)
It's any blocking operation on a shared resource.
And it cannot leave the mutex until it completes. Any other operation that tries to enter that mutex will be blocked pending that completion.
Whilst cloning is (unfortunately) an integral part of an iThread spawn, thread creation is not the only time cloning can occur.
So, whilst: "<> [on a filehandle connected to a terminal] blocks thread creation [if that filehandle needs to be cloned for that thread creation to go ahead]", is a logical consequence of "operations on PGRs being serialised by perl"; it isn't a bug, nor limitation, nor caveat--it is a requirement--implemented correctly and WAD.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: threads on Windows
by ikegami (Patriarch) on Feb 22, 2009 at 08:11 UTC | |
by BrowserUk (Patriarch) on Feb 22, 2009 at 08:21 UTC | |
by ikegami (Patriarch) on Feb 22, 2009 at 08:28 UTC |