RFC: Too many race conditions.

Florian Weimer fw@deneb.enyo.de
Sun May 27 09:14:00 GMT 2007

> No. Dave already described this a few times. If close() cannot execute
> until accept() completes, then close() cannot be used to cause the
> accept() to complete prematurely. Therefore, blocking accept() loop
> lives forever, until the next accept() completes.
> User space *cannot* solve this problem.

Userspace can interrupt the relevant threads before calling close().
This needs quite a bit of synchronization, though.

More information about the Java mailing list