Top "Blocking" questions

Blocking mode I/O blocks the issuing thread until the operation transfers at least one byte or an error or end of stream occurs.

What does InputStream.available() do in Java?

What does InputStream.available() do in Java? I read the documentation, but I still cannot make it out. The doc …

java blocking inputstream
Non-blocking getch(), ncurses

I'm having some problems getting ncurses' getch() to block. Default operation seems to be non-blocking (or have I missed some …

linux g++ blocking ncurses getch
Oracle select for update behaviour

The problem we try to solve looks like this. We have a table full of rows which represent cards. The …

sql oracle locking blocking
Blocking IO vs non-blocking IO; looking for good articles

Once upon a time I bumped into Introduction to Indy article and can't stop thinking about blocking vs non-blocking IO …

events blocking nonblocking io
Linux Blocking vs. non Blocking Serial Read

i have this code for reading from Serial in Linux , but i don't know what is the difference between blocking …

linux serial-port blocking nonblocking termios
MySQL : Permanently getting " Waiting for table metadata lock"

My MySQL database serves three webapps as the storage backend. However I recently encounter permanantly the error "Waiting for table …

mysql process blocking
How to interrupt a BlockingQueue which is blocking on take()?

I have a class that takes objects from a BlockingQueue and processes them by calling take() in a continuous loop. …

java concurrency blocking interrupt
Is non-blocking I/O really faster than multi-threaded blocking I/O? How?

I searched the web on some technical details about blocking I/O and non blocking I/O and I found …

multithreading io blocking nonblocking
How do I perform a non-blocking fopen on a named pipe (mkfifo)?

If I have a program which creates and attempts to open a named pipe using mkfifo, how can I open …

c linux named-pipes blocking fifo
How would you implement a basic event-loop?

If you have worked with gui toolkits, you know that there is a event-loop/main-loop that should be executed after …

c++ python blocking event-loop