Questions tagged [multithreading] (527)

3
answers

Multithreaded programming?

Where to read about this thing in a good theoretical aspect, which would be lit with patterns, examples, problems, tweaks and the like? It is desirable in application to Python, but this is not so important, much more important to basis. And then trying to implement some things, and I understand that do not know the basics...
lance_Pri asked October 14th 19 at 11:10
1
answer

Should the ClassLoader to be thread-safe? Does it make sense to cache the loaded classes?

In Java there is such a thing as a's Classloader, but the method defineClass() it is not synchronized, as well as methods findClass() and loadClass(), which is strange, because different threads can access these methods at the same time, resulting in re-downloading for example. Is it worth doing a custom loader is thread-sa...
Trudie.Kuphal asked October 10th 19 at 14:18
1
answer

Python 3 and flows?

started learning Python 3 and currently trying to implement threads (involucre concurrent.futures) comes out very buggy and I even know why — lack of understanding of their device at the moment, managed to learn two ways of working with streams: — the use of threading.Event to the main thread to set the flags that can get ...
lillie asked October 10th 19 at 13:41
3
answers

Qt4 QThread: data exchange between threads?

There is a server program that runs multiple threads (thousands of them). How can I get from one thread to another without using signals/slots (if thousands of threads simultaneously send a signal to other streams and each other, then I think it will be very slow). One thread can throw a second any information (the first tr...
theresa97 asked October 10th 19 at 13:14
1
answer

Flows on the Shell?

The problem: during the execution of the script every 30 seconds to pull a single command ("xscreensaver-command-deactivate >&- 2>&- &"if it is important). Ideally, I want a fork(), but on a clean shell I have not found how to implement it. I would like to do without bushizmov and bind to a specific shell....
Javon_Tillm asked October 10th 19 at 11:53
6
answers

MySQL — Synchronize multiple threads

There is a task: to insert N elements into the table, but before that make sure that are not added if these items. I.e. first do something like: SELECT COUNT(*) FROM xxx WHERE x IN (x1,x2,x3,x4,x5,x6...... x1000); If the result is 0, it means that you can do the same bulk INSERT statement. But the problem is how to do i...
Earnest_Berge asked October 10th 19 at 10:17
2
answers

Task multi-threading (.NET)?

What the problem is in the code? How to modify your code to avoid it?using System; using System.Threading; namespace Mover { internal class Endpoint { public int Amount { get; set; } } internal class Program { private static void Main(string[] args) { var source = new Endpoint(); var target = new Endpoint(); var i...
will_Lang asked October 10th 19 at 09:16
4
answers

Multithreading in a console application in C#?

Need to do the following (gruberova): console application produces different actions in an infinite loop. It took a string input from the user. If you just put Console.ReadLine(), we get an interruption of the cycle and waiting for input. Had the idea to take user input in another thread. revered Doku made in another thread...
darron.Douglas asked October 10th 19 at 05:22
2
answers

How to realize file access that are used by two processes?

Good evening to all! Write on With++, VS 2008, win32 That's the question in the topic title. There are two processes, each process creates multiple threads (1 thread = 1 file processing) are started simultaneously. How to properly implement the access to each flow of different processes to the same file is most correct? Act...
roscoe asked October 10th 19 at 01:33
2
answers

In VBA, there are streams and how to organize them?

It is in VBA, not in VB6. If the subject exists, could you please give a working example. For links to the manuals, thank you very much to understand no time now.
Breann asked October 10th 19 at 01:21