欧洲杯买球

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [multithreading]

欧洲杯买球 Multi-threading is the ability of a computer or a program to perform work concurrently or asynchronously by utilizing multiple concurrent streams of execution (generally referred to as threads).

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Threading.Timer Doesn't Run For A Second Time [duplicate]

I am trying to implement a timer structure which runs a function periodically. To do that, I used threading.Timer object like below: class AClass: def function(self): print('Begins ...') ...
0
votes
2answers
16 views

How to develop lock mechanism based on operations?

I have 3 different operations: add, delete and get. While there can be any number of get operations running in parallel, there can't be any operations parallel to add and delete ie., while adding new ...
1
vote
1answer
39 views

C# Access ConcurrentDictionary value by key in async app

I have question about ConcurrencyDictionary in .NET C#. My app is going to be async (I try to do that :)). I have some external devices, which send data to my core (C# .NET) via some TCPIP ...
0
votes
0answers
14 views

Cross-Thread problem - filling FlowLayoutPanel in two instances of a class from a List<Button> in another class

So my problem is as follows: I manages to invoke the filling of the flowLayoutPanel with Buttons, but they refuse to appear in both of the instances of the form. Process being I read in from a db ...
0
votes
0answers
14 views

In jni, is it possible for callee function argument of caller object to be a null value?

I'm programming Java application that makes JNI calls. It is multi-thread program. Since I have made this program, I have never seen this situation. So I try to ask here. (Apologize for my bad Eng.) ...
0
votes
0answers
25 views

IllegalMonitorStateException: object not locked by thread before wait(), using synchronized static method

I have already read about this question but my case I think is different: IllegalMonitorStateException on wait() call I'm using java on Android studio. The error I get it is the following: ...
0
votes
0answers
20 views

How change graphics object in multithread operation?

I want to draw images(4 pcs) with Graphics but I couldn't change pictures, I get the first Picture. My code in the below. In button1.click for (int task = 1; task < 5; task++) { ThreadPool....
0
votes
3answers
22 views

How to check the status of detached thread in C++11?

I have tried searching many ways for the solution, but couldn't find proper one, so far. I am using detached thread because I don't want my main thread to wait/block for the new child thread as it ...
0
votes
0answers
19 views

Problems with multithreading (or similiar) for the purpose of eye tracking

So, I need to write a programm to get some pictures from a user while they look on different parts of the screen. For this I imported CV2, and a module called graphics which looked basic enough (http:/...
0
votes
0answers
15 views

Facing issue to handle thread properly

I am working a project where i need 3 thread and out of them two should work concurrently and last one should start after some delay (i.e like after 10 secs of start of other two).My code structure is ...
-3
votes
2answers
69 views

Does this construction make sense?

Faced a project with this code: public class IndexUpdater implements Runnable { @Override public void run() { final AtomicInteger count = new AtomicInteger(0); ...
0
votes
0answers
19 views

Updating images in tkinter window running in a thread

I want to change images in a TKinter window which should run in a thread. But for some reason, images are not changed. What am I doing wrong here? # Do the general imports import Tkinter as ...
2
votes
0answers
31 views

Java Concurrency in Practice “Listing 15.7. Insertion in the Michael-Scott nonblocking queue algorithm (Michael and Scott, 1996).”

I am reading Java Concurrency in Practice and encounter 15.7 Insertion in the Michael-Scott nonblocking queue algorithm.. package net.jcip.examples; import java.util.concurrent.atomic.*; import net....
0
votes
0answers
13 views

ASP.NET Web forms Response.redirect from a thread

I want to make a redirect from a thread. But there is an exception "The answer is not available in this context." Simplified code looks like: protected void Page_Load(object sender, EventArgs e) { ...
0
votes
1answer
23 views

Using CompletableFuture to exit from main thread

I have a JMS queue and I have written a consumer for this JMS queue. I'm planning to remove all the logics inside this Consumer method and write a CompletableFuture and run all the logics through the ...

15 30 50 per page