nonblocking Questions

9

Solved

How can I make a simple, non-block Javascript function call? For example: //begin the program console.log('begin'); nonBlockingIncrement(10000000); console.log('do more stuff'); //define th...
Ezar asked 28/10, 2014 at 18:36

1

I'm learning about non-blocking i/o terms. Mainly, I'm learning java Nio. I'm trying to understand non-blocking i/o better and observe how it works in the implementation with Java Nio. I read a doz...
Foist asked 3/5, 2022 at 12:35

2

I'm curious at the lack of this function in MPI: MPI_Isendrecv( ... ); i.e., a non-blocking send and receive, can anyone tell me the rationale behind its omission?
Ding asked 30/8, 2012 at 8:19

3

Our gRPC need to handle 1000 QPS and each request requires a list of sequential operations to happen, including one which is to read data from the DB using JDBC. Handling a single request takes at ...
Subcritical asked 8/12, 2022 at 18:18

3

Is anyone aware of a way to make outgoing non blocking HTTP requests from within Rails? I will need the response body eventually and am trying to avoid bringing up new frameworks to keep things sim...
Familiarize asked 11/10, 2011 at 2:8

32

Solved

I'm using the subprocess module to start a subprocess and connect to its output stream (standard output). I want to be able to execute non-blocking reads on its standard output. Is there a way to m...
Langtry asked 17/12, 2008 at 17:56

1

How is Apache NIO HttpAsyncClient able to wait for a remote response without blocking any thread? Does it have a way to setup a callback with the OS (I doubt so?). Otherwise does it perform some so...
Quacksalver asked 8/12, 2022 at 17:24

3

Solved

I believe that if we call close system call on a non-blocking socket it returns immediately, then how to handle the response? whether it is closed or not? in other words what is the behavior of the...
Precipitin asked 20/6, 2011 at 22:22

4

Solved

Is there any method to call getline() and, if there is no input given, not to block and waiting? I have the following code: while(true){ if(recv(sd, tBuffer, sizeof(tBuffer), MSG_PEEK | MSG_DON...
Lydalyddite asked 9/1, 2017 at 23:47

3

Solved

I've got a loop in which some things happen according to the state it runs in (manual/automatic/learning). I now want to be able to let the program switch between these states by pressing the accom...
Indeciduous asked 29/1, 2019 at 13:34

3

Solved

Is there a way I can use python's socket.accept() in a non-blocking way that simply runs it and lets me just check if it got any new connections? I really don't want to use threading. Thanks.
Yasukoyataghan asked 15/3, 2011 at 6:6

3

Solved

My new team is writing a Java gRPC service and to ensure that we never block the request thread we ended-up wrapping more or less ALL methods inside a CompletableFuture even if those endpoints are ...
Massicot asked 5/12, 2022 at 5:38

13

Solved

I'm looking for a (multiplatform) way to do non-blocking console input for my C++ program, so I can handle user commands while the program continually runs. The program will also be outputting info...
Sunday asked 29/5, 2011 at 23:34

2

I'm trying to understand and recreate a simple preforking server along the lines of unicorn where the server on start forks 4 processes which all wait (to accept) on the controlling socket. The con...
Sexlimited asked 20/11, 2012 at 19:48

8

Solved

How do you do nonblocking console IO on Linux/OS X in C?
Essen asked 4/4, 2009 at 18:37

2

Solved

Is it possible to schedule a function to execute at every xx millisecs in python,without blocking other events/without using delays/without using sleep ? What is the best way to repeatedly execute...
Excellent asked 28/11, 2014 at 14:29

2

I've Been searching for quite a long time now and practicing a bit but I can't find a solution. Here's my goal: I would like a Javascript Client that occasionally sends data to my server I'd like...
Orchidectomy asked 21/6, 2022 at 9:39

11

Solved

I saw in WCF they have the [OperationContract(IsOneWay = true)] attribute. But WCF seems kind of slow and heavy just to do create a nonblocking function. Ideally there would be something like stati...
Fadeout asked 19/6, 2009 at 15:33

5

Solved

i read this article How To Really, Truly Use QThreads; The Full Explanation, it says instead of subclass qthread, and reimplement run(), one should use moveToThread to push a QObject onto QThread i...
Effortful asked 2/12, 2013 at 9:27

2

Solved

Can anyone show (through code) or explain to me how I might use libevent and curl together in a c program? I'm trying to write a high-performance non-blocking data monitor which needs to upload dat...
Cancellate asked 3/8, 2011 at 14:2

1

Solved

When socket programming in C, I noticed that sometimes fcntl() is used to manipulate socket behavior while other times setsockopt() is used. For example, fcntl() is used to make a socket non-blocki...
Darnel asked 30/12, 2021 at 18:37

11

Solved

I'm trying to write a program in C (on Linux) that loops until the user presses a key, but shouldn't require a keypress to continue each loop. Is there a simple way to do this? I figure I could po...
Dolorisdolorita asked 15/1, 2009 at 23:28

12

Solved

How can I poll the keyboard from a console python app? Specifically, I would like to do something akin to this in the midst of a lot of other I/O activities (socket selects, serial port access, etc...
Bespatter asked 15/11, 2008 at 3:29

6

Solved

I have a quite simple problem here. I need to communicate with a lot of hosts simultaneously, but I do not really need any synchronization because each request is pretty self sufficient. Because o...
Ochs asked 30/7, 2009 at 10:58

2

In Python, I would like to use socket.connect() on a socket that I have set to non-blocking. When I try to do this, the method always throws a BlockingIOError. When I ignore the error (as below) th...
Homeostasis asked 18/3, 2016 at 19:15

© 2022 - 2024 — McMap. All rights reserved.