Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

EXPERT concurrency

Name: Anonymous 2010-06-22 18:50

Hey /prog/

Why is there some stuff that can only be used from a certain thread? That is, once it's initialized or whatever, all successive calls must be made by the very same thread.

That something can be used only from any given thread at once makes sense, however restricting that to the very same thread every time seems wrong.

For that restriction to make sense, there would need to be some other thread-specific storage other than the stack, or the code is broken to begin with and separates stuff by thread behind your back. What am I missing?

Name: Anonymous 2010-06-22 18:58

Your language's documentation.

Name: Anonymous 2010-06-22 19:05

If only there was some sort of "thread-local storage".

Name: Anonymous 2010-06-22 21:56

That is language specific.

Name: Anonymous 2010-11-28 15:16

Don't change these.
Name: Email:
Entire Thread Thread List