blocking Questions

5

Solved

I'm making a small ncurses application in Rust that needs to communicate with a child process. I already have a prototype written in Common Lisp. I'm trying to rewrite it because CL uses a huge amo...
Braziel asked 5/1, 2016 at 12:28

4

I have a production setup for running celery workers for making a POST / GET request to remote service and storing result, It is handling load around 20k tasks per 15 min. The problem is that the ...
Selective asked 16/5, 2015 at 7:8

3

I use Winsock 2 in C++, and wonder how to make my server stop reading from the client connection. The reading thread gets blocked in recv() and I have no idea how to abort it. One way to do this is...
Morton asked 25/1, 2010 at 10:14

6

My MySQL database serves three webapps as the storage backend. However I recently encounter permanantly the error "Waiting for table metadata lock". It happen nearly all the time and I do...
Irresponsive asked 5/11, 2013 at 23:27

16

Solved

What is the difference between asynchronous and non-blocking calls? Also between blocking and synchronous calls (with examples please)?
Orpheus asked 12/4, 2010 at 21:12

7

Solved

If you have worked with gui toolkits, you know that there is a event-loop/main-loop that should be executed after everything is done, and that will keep the application alive and responsive to diff...
Optometer asked 18/3, 2009 at 14:12

3

Solved

I'm extending the functionality of a semaphore. I ran into a roadblock when I realized I don't know the implementation of an actual semaphore and to make sure my code ran correctly, I needed to kno...
Elongation asked 24/3, 2009 at 20:22

2

I want to write a gomoku game with server and client. The terminal version works well, but pygame version just blocked and can't rend anything. Here is the game execute function First it start a s...
Bearden asked 2/10, 2018 at 11:26

4

I'm having this problem when I debug my app. It blocks at this line and I don't know what is causing it. I could not find any answer or anyone that had the same problem. I have no clue what part of...
Indore asked 29/3, 2018 at 11:1

4

Solved

I want to programme my own anti-distraction tool. I can not / do not want to use the hosts file or third-party apps. When using IPsec or Windows Firewall, it only accepts IP addresses. There is you...
Property asked 18/2, 2012 at 16:15

6

I'm calling Process.Start, but it blocks the current thread. pInfo = new ProcessStartInfo("C:\\Windows\\notepad.exe"); // Start process mProcess = new Process(); mProcess.StartInfo = pInfo; if (m...
Randolf asked 19/6, 2010 at 19:22

1

I'm trying to make GET request between two microservices (with Keycloak authentication). Let's say microservice A is asking microservice B for some resources. Microservice B has a GET endpoint and ...
Ishmael asked 29/6, 2021 at 14:55

3

Solved

Unbuffered channels block receivers until data is available on the channel. It's not clear to me how this blocking behaves with multiple receivers on the same channel (say when using goroutines). I...
Rectangle asked 21/7, 2015 at 13:2

6

Solved

In a low level language (C, C++ or whatever): I have the choice in between either having a bunch of mutexes (like what pthread gives me or whatever the native system library provides) or a single o...
Frick asked 6/9, 2010 at 14:0

13

Solved

I'm currently trying to learn nodejs and a small project I'm working is writing an API to control some networked LED lights. The microprocessor controlling the LEDs has a processing delay, and I n...
Axis asked 7/1, 2014 at 8:26

27

Solved

How to prevent downloading images and video files from my website? Is it possible? What would be the best way to do this?
Hudak asked 18/8, 2009 at 15:10

10

Solved

Yes, this question has been answered in a variety of ways, none of which, are answered in a way that fit my needs. So, therefore I'm asking mine specific to my situation. I've tried, probably 5 or...
Hooves asked 9/8, 2013 at 2:1

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

1

Solved

I have a websocket that receives data and I want to do some database operations with this data. Here is a simplified version of my code: import javax.enterprise.context.ApplicationScoped; import ja...
Colene asked 29/7, 2021 at 9:28

1

Solved

Lately i've implemented a Reactive REST GET endpoint with Quarkus/Mutiny using a callback structure; Connect MyRequestService to Reactive REST GET endpoint with Quarkus/Mutiny After finishing, I wa...
Wheelman asked 4/4, 2021 at 18:26

1

Solved

Suppose I have a blocking function because of some third party library. Something along these lines: fun useTheLibrary(arg: String): String { val result = BlockingLibrary.doSomething(arg) return...
Microprint asked 28/2, 2021 at 17:43

3

Solved

Is there any API to let the main goroutine sleep forever? In other words, I want my project always run except when I stop it.
Keniakenilworth asked 5/4, 2016 at 6:48

4

Solved

In the synchronous/blocking model of computation we usually say that a thread of execution will wait (be blocked) while it waits for an IO task to complete. My question is simply will this usually...

4

Solved

I want to send a command to a server, and find out if I get a response. Right now i am using BufferedReader's readline() function, which blocks until there's a response from server, but all I want...
Trimetallic asked 30/6, 2012 at 11:41

11

Solved

I am trying to figure out which methods (esp on the Main Thread) take more than a second to execute. Unfortunately I am using DDMS and traceview, but i don't really understand how to read the data ...
Carri asked 31/10, 2013 at 3:12

© 2022 - 2025 — McMap. All rights reserved.