многопоточность

Delphi 6/7-what book to read about threads and their allowed number

You need to quickly raise your knowledge of a fairly new Delphi 6 or 7 environment, in general, I worked with it, but you nee ... ), there is already image recognition on the screen and with the voice of the chips, all this must be broken down in streams.

Python + multiprocessing + signal = = "Complete nonsense"#?

I recently bought a wonderful piece of RPi, and, accordingly, became interested in python. Now I'm writing a small software t ... f wires near the router. Because of this, there are no options with using x's. p>s.*3 And yes. Python 3.2 raspbian linux.

How do I track the total execution time of all threads?

Simple script: import threading import time total = 0 lock = threading.Lock() def update_total(amount): global total, lo ... ain thread after all the threads are executed. 2) How do I output total after processing by all threads in the main thread?

Help solve the problem with threads

I am learning to program in Java, there is a problem with the problem / * Crossword Given a two-dimensional array that conta ... ic String toString() { return String.format("%s - (%d, %d) - (%d, %d)", text, startX, startY, endX, endY); } } }

Strange situation with java. net. SocketTimeoutException: Connect timed out

Hello. I don't understand one thing. The following code in a simple application is worked out "perfectly": package javaa ... Text(""); } }); ******************************************************* Why is the error being returned?

Thread.sleep doesn't work in ActionListner

I'm looking for a solution to the problem on the network - I can't find it. I want to make sure that when you click on the Pr ... ame.EXIT_ON_CLOSE); frame.setLayout(new GridLayout()); frame.setVisible(true); return frame; } }

the problem of dining philosophers C#

I passed the problem about dining philosophers, but the teacher sent it back, saying that the code was written incorrectly, w ... for (int i = 0; i < N; i++) { phils[i].printStats(); } } } }

The task of Java's Dining Philosophers

When implementing dining philosophers on Java, such a problem arose, I have philosophers and I do not understand how to make ... ep(300); } catch (InterruptedException e) { e.printStackTrace(); } eating.getFork(left,right); } }

How to increment numbers in a stream correctly?

I just started studying streams and unfortunately I don't quite understand them yet. I can't use synchronaized in the test() ... } } public static void main(String[] args) { Part3 p = new Part3(3, 5, 100); p.test(); } }

Multithreading in Java. The code of their z book HeadFirst Java

public class VerySImpleChatServer { ArrayList clientOutputStreams; public static void main(String[] args) { new VerySImp ... Thread t = new Thread(new ClientHandler(clientSocket)); t.start(); System.out.println("got a connection");

How many threads are there in PHP? [closed]

Closed. This question should be clarified or supplemented with details. Answers to it are not accepted at the moment. ... o make multithreaded php, will the connection to MySQL be multithreaded or single? Please explain to anyone who is not lazy.

Why are all boost Asio callbacks running in a single thread, even though io context is running in multiple threads?

The code below shows an asynchronous server that receives a message from the client, prints the message to the console, sends ... +){ threads.create_thread([](){ context.run(); }); } threads.join_all(); return 0; }

System. InvalidOperationException in System.Drawing

There is a function UpdateImageData that changes the color of the pixels PictureBox in a separate thread: var bmp = (Bitmap) ... f the section that was initially obvious). var bmp = new Bitmap(pictureBox1.Image); // ... pictureBox1.Image = (Image) bmp;

Search for the max/min value of an array via a java stream

I need the array to be divided into 2 parts and in one stream the maximum value of the first half of the array is searched fo ... ++){ if (min > secondArray[i]) min=secondArray[i]; } System.out.println("Min = "+min); } } `

Java Memory Model and happens-before

Good afternoon. There is a small question about JMM. I know how happens-before works, but I can't understand one point. Here ... out.println(x); }).start(); x = 5; flag = true; } What value should X take? If there is some rule to determine this?

Java block synchronized

I'm trying to synchronize the object ArrayList in the synchronized(){} block. In a separate thread, I capture this object in ... nchronized { public ArrayList<String> al; CheckSynchronized() { al = new ArrayList<>(); } }

Cache Coherence and the Java Memory Model

Can cache coherence affect the performance of a multithreaded Java application? Or does the virtual machine solve all the problems? In which cases will the same multithreaded code work differently depending on the cache?

How the join() method works in the Thread class

According to the idea of the join() method, if I understand it correctly, it should transfer control of the program to the th ... OfWords "+counterOfWords); } } } }); } }

What is the difference between ExecutorService and ForkJoinPool?

What is the difference between the old ExecutorService implementations from 1.5 and the new ForkJoinPool from 1.7? What can you do with ForkJoinPool that you can't do with the old ExecutorService versions? Or what is easier to do with ForkJoinPool?

Java Semaphore implementation

1 Thread: public class First implements Runnable { private Semaphore semaphore; public First(Semaphore semaphore) { ... n starting threads: 2 1 2 1 2 1 1 1 Or, for example, 1 1 1 1 1 2 2 2 2 2 I.e. they don't even finish their work.