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
I want a feature to temporarly block my website from accessing?
Hi from time to time , i want to shutdown my site for maintenance ...
How could i do this? I've seen a option in phpbb to block the site by admin and then unblock them..
Is there any apis for this or tell me a method of how to do this?
I'm using php…

Vijay
- 5,331
- 10
- 54
- 88
0
votes
1 answer
Theads in a pool gets into blocked state when pool fills up
I have an application that has a threadpool size of 20 and whenever all the threads in the pool is exhausted the threads get into blocked state forever essentially browning out the application. The application works fine when the pool is partially…

broun
- 2,483
- 5
- 40
- 55
0
votes
2 answers
Squid ACL rules files are not working on Windows
I use a Windows server to host Squid and loaded some ACL rules from file to block ads. The file is loaded, but the ACL rules don't work, and I can still access the web page which is located in the file. How can I fix it?
These are my blocking…

Hartman
- 295
- 4
- 14
0
votes
0 answers
Unblocking a thread that calls an external process
I have the following complete, compilable example (also available as a gist) which spawns a small number of threads (echo pass) and one other (echo block; sleep 1; echo unblock). The second is so names because when I see block in the output, the…

Sean Allred
- 3,558
- 3
- 32
- 71
0
votes
1 answer
Getting rid of blocking code
I am not sure if I can explain it well here but let me give it a try. Code below is just to show the idea as I am just typing it here without verifying everything in the compiler.
I have a method (say Method1) where I am doing two things.
1. Calling…

whoami
- 1,689
- 3
- 22
- 45
0
votes
1 answer
Getting back a file sent from remote PC using BATCH with PsExec C#
I am coding a program in C# to communicate with a remote PC in an Wifi AdHoc network. I execute a BATCH file in the remote that will send to the local a CHECK.txt file. I use PsExec.
Everything works fine in my C# program when I execute this batch…

Yomismo
- 3
- 2
0
votes
0 answers
Why is read() not blocking or Why is my write() sending blanks?
This is for HW A little background on my project. I am writing a client/server program. My client is to spawn my server process and then send a filename and search term to the server through a named pipe. My server is to search the file for…

art3m1sm00n
- 389
- 6
- 9
- 19
0
votes
1 answer
java.util.Calendar.get* and java.util.Calendar.set* are blocking
on a multi thread application, there are locked threads, as i get the threaddump, it seems to be about the java.util.Calendar class, the object is created using Calendar.getInstance() which returns new Instance. Do you have any comment.
here is a…

dursun
- 1,861
- 2
- 21
- 38
0
votes
2 answers
Run blocking function at startup Nodejs
I try to use sonos (https://www.npmjs.org/package/sonos) to return an array of the players i have on my network. I would like to use the sonos.search function to find players for me at startup and afterwards update the array with new players if…

James Bund
- 183
- 2
- 14
0
votes
1 answer
PHP proc_open blocking reads to stdout until C program terminates
I'm working on an app that uses a fingerprint scanner for user identification. Interacting with the fingerprint scanner is done in a C program with libfprint that I invoke using proc_open in PHP. The fingerprint enrollment process is a multi-stage…

SpaDusA
- 324
- 4
- 14
0
votes
1 answer
Setting Scrollbar value after setVisible is called? (without using invokeLater)
I have a JDialog that is being kicked off by a JFrame. This Dialog has a JScrollPane inside of it, with some content that is added before the JDialog's setVisible function is called with 'true'.
My problem is, with the content added, it causes the…

Aaron Marcus
- 153
- 2
- 13
0
votes
4 answers
Two BlockingQueue in the same endless loop?
I have a thread, that processes incomming messages (endless loop). For this, I use a BlockingQueue (Java), which works as quite nice. Now, I want to add a second processor in the same Class oder method. The problem now is, that in the endless loop i…

DrDol
- 2,220
- 2
- 19
- 23
0
votes
0 answers
Why Is WebRTC Blocking Other Applet Applications Which Use Different Ports
The WebRTC is worked on firefox or google chrome.And ı want to ran applet on the same browser too.Namely simultaneously. But the applet can't run because JRE problem.I ran the WebRTC Node Server on 1337 port. But i can't run other applet aplications…

Dvlpr
- 453
- 3
- 8
- 20
0
votes
0 answers
Print data to connection before blocking
I'm writing a NAT traversal node in PHP and I would like to be able to send data before the connection is closed. I need the script to send a string before blocking while waiting for data on a socket. It seems that echo writes to a buffer that is…

TheBat
- 1,006
- 7
- 25
0
votes
1 answer
How do I block a website's IP address using images from my sub domain (images.domainname.com)?
I have a .htaccess file in the images.domainname.com subdomain. I have tried
order allow,deny
deny from "id address i want to block"
allow from all
but this didn't work...

Samet Erpik
- 3
- 1