Questions tagged [blocking]

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.

1679 questions
0
votes
4 answers

How to create a fixed blocked (FB) file for IBM mainframe/FTP in VBA

I've got VBA code that generates a text file with some pretty basic information included. I then upload that file via FTP. I got a message from the server admin of the IBM mainframe today that my file was in variable blocking (VB) format and their…
Bazily
  • 1
  • 1
  • 1
0
votes
1 answer

Have ctrl+c interrupt a blocking system call

Here is a slimmed down example of the code I'm working with: void SleepIntr() { printf("Entering sleep...\n"); SleepEx(10000, TRUE); printf("Sleep done...\n"); } static BOOL WINAPI ctrl_handler(DWORD dwCtrlType) { …
0
votes
4 answers

Design to block asynchronous javascript

var flow; $.ajax({ url: "qa/version.json", dataType: "json", success: function( response ){ flow = response.Version; } }); $(".flow").append(flow); Due to the nature of JS asynchronous design, the append would will be…
Terry Chen
  • 427
  • 6
  • 9
0
votes
1 answer

Multiple WebRequests to the same resource blocking each other?

So I have multiple threads trying to get a response from a resource, but for some reason - even though they are running in seperate threads, each response will only return when all others are either still waiting or closed. I tried using WebResponse…
pixartist
  • 1,137
  • 2
  • 18
  • 40
0
votes
1 answer

How to get application process to wait until the socket has data to read using libevent bufferevents?

I'm working with libevent for the first time and have been having an issue trying to get my application to not run until the read callback is called. I am using bufferevents as well. Essentially I am doing is trying to avoid the sleep in my main…
SSB
  • 349
  • 3
  • 18
0
votes
1 answer

AutoResetEvent object , waits 60 secs OR event

Im using AutoResetEvent object to block a thread for 60 secs ,, but I would like to block it for 60 secs or AutoResetEvent.set() event CODE : global: private readonly AutoResetEvent _signal = new…
Arrabi
  • 3,718
  • 4
  • 26
  • 38
0
votes
5 answers

Blocking all UI using pure JavaScript

How to block all UI things in a webpage until all JavaScript files including jquery.js are loaded completely. Is there any possibility to do it using only JavaScript?
Guru
  • 1
  • 1
0
votes
3 answers

Non-Blocking code Issue in javascript

I was trying to make a brute force poll voting script. $('#vote').click(function(e) { var noOfvotes = 0; var noOfattempt =0; var noOffail =0; for(var i =0 ; i<500;i++){ $.ajax({ …
Sanoob
  • 2,466
  • 4
  • 30
  • 38
0
votes
4 answers

When does windows determine a call blocks and surrender the rest of the threads time slice

If you have a lot of threads with things to do, then apparently asynchronous calls aren't necessarily better than synchronous calls because blocking threads just hand the rest of their time over to the next thread in line (if any) according to the…
user334911
0
votes
2 answers

blocking IO in nodejs

I am developing an application using NodeJS where two queries depend on each other here is explanation of my situation. I have to query database for some values say A then I have to query database for some other value B only if there is an A in…
user2009750
  • 3,169
  • 5
  • 35
  • 58
0
votes
1 answer

Jargon term for dividing blocking code up into asynchronous callbacks

I seem to recall hearing a term for breaking up long-running synchronous code into chunks that are incrementally evaluated over multiple callbacks on the event-queue (to avoid blocking). Does such a term exist? If so, what is it?
Nathan Breit
  • 1,661
  • 13
  • 33
0
votes
1 answer

fgets not blocking in descriptor promoted to stream

I am using fgets in a small C program - running under Ubuntu - to read data coming from Arduino via its FTDI USB/Serial converter. I am using low level I/O function from GNU libc (since I want - in the future - be able to control baud rate etc) and…
ginsi
  • 11
  • 1
0
votes
1 answer

How to configure as a non-blocking unique_lock?

I have found in the docs that a unique_lock can try "to acquire the lock in a non-blocking fashion". Is it the unique_lock's thread that isn't blocked as it tries to acquire the lock in the "non-blocking fashion"? If so, does it simply fail…
user1382306
0
votes
1 answer

Get MySQL server load for a given time frame

How can I get all the queries executed for a given time frame in a MySQL server? I need this to monitor failures on a web service, which I suspect are caused by multiple operations blocking each other.
Pedro Montoto García
  • 1,672
  • 2
  • 18
  • 38
0
votes
1 answer

netty 4.0.15 threads blocked

can any one help me to understand the below thread blocks in netty4.0.15 nioEventLoopGroup-5-13 [BLOCKED] CPU time:…
1 2 3
99
100