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
0 answers
Block until UIView loads text?
I have a UIView with paging enabled.
I automaticly scroll to the next page:
[myView scrollToNextPage]
Now here I want the code to block until the next page is finished loading. scrollToNextPage calls a delegate method and I want to wait for it to…

user714171
- 363
- 1
- 3
- 12
0
votes
2 answers
Qt-C++ Preventing a slot to execute a method, when a previous slot already dit and has not finished
In my project i have several Objects which gather some data and put them into a database, now for some reasons the database link could fail, so i made signal for it and bound it to a slot which will write what happened in a log file and try to…

Xsmael
- 3,624
- 7
- 44
- 60
0
votes
1 answer
why blocking operation created?
Using mean.io stack, i have the following problem:
On testing with Apache bench, I found that simple query created blocking operation
var mongoose = require('mongoose'),
async = require('async'),
Post =…

vdserg
- 1
0
votes
3 answers
A Packet Blocker Software
Can any one suggest me a packet blocking software ??
My requirement is to block packets within the LAN.(Internet does not come into picture).
Supposing CLIENT_A communicating to CLIENT_B in the same network(LAN).
I want a CLIENT_C (who is in the…

veenit33
- 79
- 2
- 8
0
votes
0 answers
How to create a method that blocks until something is received in netty?
I'm new to netty and I want to use it for communication between my server-network. I got a Master and various Slaves in my Scenario. The Slaves need to query data from the Master. So that's why I want to create a method that sends something to the…

Scrayos
- 101
- 2
- 9
0
votes
1 answer
Perlscript with only one instance running, the next call add to queue of the first
I trie to make a Perlscript where only one instance is running, and the next call of the script sends the payload to the queue of the first one. If the queue is done the script should terminate.
I tried this with sockets - they should be blocking...…

Lebewesen
- 147
- 1
- 8
0
votes
1 answer
Asynchronous socket handling in java using the conccurent package still blocks code?
I'm trying to play around with the concurrent package and for this reason I tried to write a simple socket handler. Here is the code:
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.concurrent.ExecutorService;
import…

Bula
- 2,398
- 5
- 28
- 54
0
votes
1 answer
Which of the following system calls behave same for both blocking and non-blocking sockets?
Hi can any one tell me which of the calls behave same for both blocking and non blocking sockets:
receive and send
accept
connect

shanal
- 105
- 3
- 9
0
votes
1 answer
wxPython thread that does not block the GUI?
I am new to wxPython and threading. I am trying to move some code into a thread so that it no longer blocks my GUI while executing, and I can push another button to kill the thread. Having done this, however, the code still blocks my GUI. How can I…

user3403418
- 11
- 3
0
votes
2 answers
Client Socket on Java
In most Java client/server examles they use ServerSocket.accept() method to receive messages from the client. This method blocks the thread. This looks good becouse server does not do useless work and can answer immediately. But on the client side…

osseum
- 187
- 14
0
votes
0 answers
Is there way the hide/block the navigation bar in android 2.3
At this moment I'm making a quiz application in android 2.3 for some students. I don't want the students to be able to click on the navigation bar during the test, because then they can go to the internet browser to find answers for the quiz.
Is it…

The Fettuck
- 31
- 4
0
votes
1 answer
Handing blocking in synchronous functions?
I basically have to create a simplified device controller for an OS. I need to create synchronous and asynchronous functions to input/output a word of data to a queue and when the "device" is ready, it is signalled & function returns. The…

Caulay
- 43
- 7
0
votes
1 answer
Blocking event subscription in compile time
Related to my previous question. Is there a way to block the subscription in compile time? Something like marking the event's "Add" as "private" in the implementor even though it's public in the interface.

Moshe
- 555
- 3
- 14
0
votes
0 answers
Servicestack redis blocking on hash write without exceptions on socket read
While I was debugging my code using ServiceStack redis components - I noticed a bug that was causing my thread to stop responding halting in a io blocked mode.
The code I use is to store a value on a servicestack hash as in the code below. Here the…

user3141326
- 1,423
- 2
- 21
- 31
0
votes
2 answers
WCF Named Pipe Streaming
I have implemented a server/client test rig that uses streamed transfer mode with a net.pipe binding. This is all kind of working however I am hitting an issue when the actual server's stream implementation blocks on an empty buffer. Even if i…

user3475441
- 41
- 2