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
1 answer
the unp book single-threaded server with select
In the book "UNIX Network Prgramming" 3rd, Vol 1, Section 6.8 "TCP Echo Server (Revisited)" of Chapter 6 "I/O multiplexing: The select and poll Functions", the book writes:
"Unfortunately, there is a problem with the server that we just showed.…

leesper
- 21
- 2
0
votes
1 answer
stream_socket_enable_crypto(); Disables stream_set_timeout
I have created an xmpp server, first using non tls which works as I want with no errors. The hole authentication works and I can chat with no problems.
Before I start reading from the socket I did:
stream_set_timeout($sock, 0, 1000);
This will let…

prdatur
- 1,010
- 1
- 14
- 20
0
votes
0 answers
set timeout on a blocking socket when connecting (using pion c++ library)
I'm using pion network library, using its sync API, by sync I mean connect to server in blocking mode.
The problem is the connecting could be very long, so I need to set timeout on it.
I googled a lot and found something: set socket to…

aj3423
- 2,003
- 3
- 32
- 70
0
votes
1 answer
Blocking main-thread after gui-event
I've been making a program that reads from a file, identifies common "posts" in the file, and makes a summary of these. My problem is that the GUI-event that allows the user to specify the name and search-term of the post, does not interrupt the…

Robin Lunde
- 18
- 5
0
votes
1 answer
Blocking IO (OIO) UDT Channel in Netty
I'd like to use Netty's implementation of UDT on a Blocking IO Channel. I already have a working NIO UDT implementation where Netty have a proper channels on NIO. I couldn't find an appropriate channel for OIO, It would be great if someone help me…

Kishore
- 952
- 2
- 11
- 31
0
votes
2 answers
How to make fast data reading using socket in Java?
I'm using SocketChannel for single connection like this:
int sampleBufferSize = 50;
StringBuilder data = new StringBuilder();
ByteBuffer bf = ByteBuffer.allocate(sampleBufferSize);
SocketChannel sc = new SocketChannel();
while(true)
…

Anton Onipko
- 108
- 6
0
votes
2 answers
Is there a way to ‘join’ (block) in POSIX threads, without exiting the joinee?
I’m buried in multithreading / parallelism documents, trying to figure out how to implement a threading implementation in a programming language I’ve been designing.
I’m trying to map a mental model to the pthreads.h library, but I’m having trouble…

ELLIOTTCABLE
- 17,185
- 12
- 62
- 78
0
votes
1 answer
Feasibility of making a synchronous call to FIleSystem from chrome.webRequest callbacks set up as "blocking"
I am writing a Chrome extension which listens for chrome.webRequest events, some are set up for blocking, so that I can cancel the request. I need to be able to make a SYNCHRONOUS call from within the chrome.webRequest callback, which writes to the…

Thomas McDermott
- 91
- 6
0
votes
1 answer
Android Wear: don't share all notifications
Is it possible with Android Wear not to share all notifications with a connected wearable device? E.g. I only want only be notified of new SMS messages on the Wearable Device but not of all the other stuff?
Edit: Would it be implemented in the…
user2368140
0
votes
0 answers
Lock on two tables without dependences between them
I have a strange situation. I'm working on a SQL Server 2005 database, I've searched locks on DB using this.
After capture all day, stop the trace and see the results, I found a blocking query that blocks a insertion, BUT, the query is in read…

Mariano G
- 255
- 4
- 14
0
votes
2 answers
JavaFX Block the UI (and the code) until a server call is finished
This topic is around in countless articles of "not blocking the JavaFX UI during a long lasting call into something time consuming (server)". I know that and I googled and tried a lot.
Most of the "Internet" explains that long lasting calls caused…

magicroomy
- 395
- 1
- 6
- 19
0
votes
1 answer
Does Task.Result block if the task is Completed?
Accessing the Result property of a task has the potential to block until the task is complete, as Stephen Cleary's article on the subject demonstrates.
I imagine that accessing Result on a task that has already completed will never block, but I have…

Gigi
- 28,163
- 29
- 106
- 188
0
votes
3 answers
Does sleep() block?
I am implementing a multi cast server that sends a message every X amount of seconds to a multicast address.
I am also part of the multicast group and I will also receive messages from other senders in that group.
My question is, can I use…

umdcoder
- 137
- 1
- 2
- 15
0
votes
0 answers
How to determine what is blocking a connection to website?
I need to connect, let's say a script, from an IP to a website and I can't, because:
wget: domain.com…
--2014-11-10 11:20:53-- domain.com…
recognized: domain.com...
Connecting with: domain.com|... error: Connection Timeout.
Connect again…

BlackJuice
- 1
- 4
0
votes
1 answer
Akka actor blocked by another actor running CPU-intensive job
I have an ActorSystem which has three actors, a MasterActor, a PrinterActor and a BlockerActor:
The PrinterActor simply sleeps for one second then prints out something:
public class PrinterActor extends UntypedActor {
@Override
public void…

zhuke2
- 1