News for hackers. Stuff that matters.
Re:“POSIX advisory locks are broken by design” by int_19h on Wednesday July 25, 2018 @03:11AM (#17607411)
That's not fine, because processing a single request often involves waiting on some I/O, and the thread can service (a part of) another request in the meantime. Which is what modern event loop driven servers do - but this doesn't play well with thread locals, or abstractions implemented on top of them, because now your single physical thread effectively runs multiple cooperatively scheduled logical threads/requests.

There are no comments on this comment yet.