Blocking mode I/O blocks the issuing thread until the operation transfers at least one byte or an error or end of stream occurs. Blocking algorithms refer to an operation in multithreaded environment which temporarily restricts access to some resources to a single thread, thus blocking all other ones. It isn't clear which this tag is intended for.
Questions tagged [blocking]
1679 questions
46
votes
4 answers
What is meaning of 'Blocking' in Firebug Net Panel?
I'm using Firebug 1.5.2 and while testing a site before production release i can see a huge amount of time consumed by 'Blocking' parts of the requests.
What exactly does the 'Blocking' mean?

enerB
- 461
- 1
- 4
- 3
38
votes
2 answers
Is the UNLINK command always better than DEL command?
In Redis 4.0, there is a new command UNLINK to delete the keys in Redis memory.
This command is very similar to DEL: it removes the specified keys.
Just like DEL a key is ignored if it does not exist. However the
command performs the actual…

user3219492
- 774
- 1
- 10
- 18
38
votes
4 answers
Does a thread waiting on IO also block a core?
In the synchronous/blocking model of computation we usually say that a thread of execution will wait (be blocked) while it waits for an IO task to complete.
My question is simply will this usually cause the CPU core executing the thread to be idle,…

JamieP
- 1,664
- 2
- 13
- 16
35
votes
2 answers
When does a UDP sendto() block?
While using the default (blocking) behavior on an UDP socket, in which case will a call to sendto() block? I'm interested essentially in the Linux behavior.
For TCP I understand that congestion control makes the send() call blocking if the sending…

Jocelyn delalande
- 5,123
- 3
- 30
- 34
35
votes
4 answers
Is there a non-blocking version of MessageBox.Show (or something like it)?
Long-delayed update
I'm accepting MUG4N's answer to this question, and I also want to respond to some of the criticisms that were raised against it.
ChrisF said:
...you can't make UI calls directly from background threads.
This is a blanket…

Dan Tao
- 125,917
- 54
- 300
- 447
34
votes
4 answers
What's the differences between blocking with synchronous, nonblocking and asynchronous?
I am reading 'Operation System Concepts With Java'. I am quite confused by the concept of
blocking and synchronous, what are the differences between them?

diligent
- 2,282
- 8
- 49
- 64
34
votes
3 answers
Go project's main goroutine sleep forever?
Is there any API to let the main goroutine sleep forever?
In other words, I want my project always run except when I stop it.

Dev Zhou
- 865
- 2
- 14
- 21
34
votes
1 answer
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 and non blocking in reading Serial Port and which one is better in which situation?

Mohsen Zahraee
- 3,309
- 5
- 31
- 45
34
votes
11 answers
blocks - send input to python subprocess pipeline
I'm testing subprocesses pipelines with python. I'm aware that I can do what the programs below do in python directly, but that's not the point. I just want to test the pipeline so I know how to use it.
My system is Linux Ubuntu 9.04 with default…

nosklo
- 217,122
- 57
- 293
- 297
33
votes
4 answers
How do I read the output of a child process without blocking in Rust?
I'm making a small ncurses application in Rust that needs to communicate with a child process. I already have a prototype written in Common Lisp. I'm trying to rewrite it because CL uses a huge amount of memory for such a small tool.
I'm having some…

jkiiski
- 8,206
- 2
- 28
- 44
33
votes
5 answers
iOS How to determine what is blocking the UI
I'm fairly new to iOS development but I'm starting to grasp some of the more complicated concepts. I currently have an application that implements an AVCam to capture video. The AVCam is created on a separate thread, but uses a view that is in my…

user379468
- 3,989
- 10
- 50
- 68
31
votes
1 answer
Behavior of sleep and select in go
I'm trying to understand a bit more about what happens under the surface during various blocking/waiting types of operations in Go. Take the following example:
otherChan = make(chan int)
t = time.NewTicker(time.Second)
for {
doThings()
//…

vastlysuperiorman
- 1,694
- 19
- 27
30
votes
3 answers
BlockingCollection(T) performance
For a while at my company we've used a home-grown ObjectPool implementation that provides blocking access to its contents. It's pretty straightforward: a Queue, an object to lock on, and an AutoResetEvent to signal to a "borrowing" thread when…

Dan Tao
- 125,917
- 54
- 300
- 447
29
votes
3 answers
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 initialization)? I would like it to work like getch() in Windows. I have tried various versions…

Jonas Byström
- 25,316
- 23
- 100
- 147
29
votes
2 answers
What does the term "blocking" mean in programming?
Could someone provide a layman definition and use case?

alfredo
- 961
- 3
- 10
- 11