Non-blocking mode I/O either transfers at least one byte or returns immediately with an error or end of stream. Non-blocking algorithms refer to use of concurrency without the usual mutual exclusion primitives, guaranteeing that thread operations will not block indefinitely. This is usually handled with atomic value modification (increment/decrement) and/or reading (compare-and-exchange) operations.. It isn't clear which this tag is intended for.
Questions tagged [nonblocking]
1597 questions
14
votes
3 answers
How can I avoid blocking with Java ServerSocket?
Im working on a socket listener that has to listen on 2 ports for 2 types of data( port 80 and port 81). These data are very similar as in the kind of operations that are performed on the data and are just different because they arrive n different…

ping
- 1,229
- 3
- 21
- 41
14
votes
6 answers
sending a non-blocking HTTP POST request
I have a two websites in php and python.
When a user sends a request to the server I need php/python to send an HTTP POST request to a remote server. I want to reply to the user immediately without waiting for a response from the remote server.
Is…

pablo
- 141
- 1
- 1
- 3
13
votes
3 answers