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
0
votes
3 answers
Python threading with queue and unresponsive threads
In my python code I make a call to an external api to get a list of images' urls. For each of these urls I create a thread to generate a thumbnail. Here is the part of the code of interest:
def process_image(image, size, cropping, counter, queue):
…

pypy
- 443
- 5
- 19
0
votes
0 answers
Is there no blocking mechanism in msgsnd? Message Queues: IPC
In C interprocess communication, we have the option to invoke msgrcv either as a blocking call or a non blocking call. But it seems msgsnd does not have the same flexibility.
I tried to use
msgsnd(msgid, (void *)&my_message, MAX_TEXT,…

Haris Ghauri
- 547
- 2
- 7
- 27
0
votes
0 answers
Custom event listener using Java
I have created an application that listens to incomming messages from an AS400 DataQueue.
The application is running in a Java application server (Glassfish).
I am using the jt400 library to connect and read from the Dataqueue.
Reading from a…

user1533878
- 11
- 4
0
votes
1 answer
In iOS, why doesn't socket recv fail when the underlying network changes?
In iOS when I've got a blocking socket with a timeout set using SO_RCVTIMEO. When I change the WiFi network that the device is connected to, the calls to recv will timeout appropriately, but errno will be reported as EWOULDBLOCK and recv returns…

Joey Carson
- 2,973
- 7
- 36
- 60
0
votes
1 answer
Has Java blocking IO on 64 bit Linux, in 2015, solved the C10K issue?
Has Java blocking IO on 64 bit Linux, in 2015, solved the C10K issue?
In other words:
Can a thread-per-socket Java server (not NIO), running on 64 bit Linux, keep 10,000 threads running?
Can it trivially reply to incoming data (on a small subset of…

fadedbee
- 42,671
- 44
- 178
- 308
0
votes
2 answers
Wait until data is ready (Java)
I have a bluetooth socket that reads data.
I have three objects that are trying to get data. The bluetooth channel gets an integer that specifies which object should receive the data.
My issue:
How do I make each object "wait" until the data is…

msj121
- 2,812
- 3
- 28
- 55
0
votes
1 answer
How to find the cause of blocking finalizer in .NET?
In Java I need only to press a single key (ctrl-break) to see the stacktrace of a blocking finalizer.
Is there a simple solution to see this also in .NET which can understand a Java programmer?

Horcrux7
- 23,758
- 21
- 98
- 156
0
votes
0 answers
The Future {blocking {created new Future{}}} - nested futures stops parents one
I've tried to model the situation I have in a real code.
The use case is simple:
There is:
Future {blocking {
// in there it calls nested futures
}}
More detailed (global Execution context is used as parent one, but there is was attemp…

ses
- 13,174
- 31
- 123
- 226
0
votes
2 answers
How to block 127.0.0.1:8080
I am trying to block http://127.0.0.1:8080/ in C:\Windows\System32\drivers\etc host file. so what i did is:
127.0.0.5 http://127.0.0.1:8080/AccessCtrl/login.jsp
But is not working, i can still access this site.

Photonic
- 1,316
- 19
- 31
0
votes
1 answer
Should I use underscore function in node.js?
I have 3 tasks running parallel. In the first task, I use underscore method to loop through an array(for example _.each ). Does that underscore method block the other 2 tasks? If so, isn't it a bad idea to use underscore module in node.js?

Mr Cold
- 1,565
- 2
- 19
- 29
0
votes
0 answers
trying to read from stdout with NONBLOCKING set using winARM newlib lpc
I want read on stdout to be non-blocking. I was using the newlib-lpc library in WINarm to do this. But even though it is set as non-Blocking, the code stops at read every time and waits for a character to be received.
Here is my read…

ej_01
- 51
- 4
0
votes
0 answers
asyncronous jQuery ajax-call blocking on "large" data
I'm using jQuery.ajax (async) for posting "large" data. (for example a base64 encoded 4 MB image).
To show the progress to the user, I'm using xhr.
My problem is now, that the initialization of that call takes nearly 2 seconds before I get my first…

alexandre
- 286
- 3
- 17
0
votes
0 answers
Java JDilaog - make it modal but non blocking
I'm trying to create a login system with a popup login box, and I want the user to be forced to enter their credentials (or click cancel) before they do anything else. Unfortunately, setting modal to True and then invoking the box with setVisible()…

Niko
- 984
- 1
- 7
- 15
0
votes
0 answers
Screensaver Child Process Outlives Screensaver
I have this situation. I have a custom screensaver that starts another process using System.Diagnostics.Process.Start("MyHelperApp.exe"). That second process lives on after the screensaver itself is closed and disposed.
The problem is that the…

mcu
- 3,302
- 8
- 38
- 64
0
votes
1 answer
nodeJS blocking all requests until it calls back
I've developed a nodeJS API (using express) which allow users to login and get a list of files that they have stored in a remote server. And as you understand, the code must be non-blocking so the webserver can still responds to logging in requests,…

Luís Gomes
- 61
- 7