D
D
Dom Topor2013-11-23 05:19:32
C++ / C#
Dom Topor, 2013-11-23 05:19:32

What topic to choose for the laboratory "Processes and flows"?

It is required to write a multi-threaded application that must:
       • create new threads as needed;
       • regulate the access of threads to any resource (file, graphic object, static variable, etc.);
       • regulate thread priorities, suspend their execution and start again when required.
       Please advise how these requirements can be met. What programming language to choose for this? If there are, please send ready-made solutions or materials on this topic?
Thank you very much for the help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2013-11-23
@deleted-Ari100teLL

Chat on sockets with thread pool.
I think it will be possible to kill two birds with one stone, for sure the last lab will be sockets.
The language, I think, is C / C ++ for a deeper understanding of how it all works.

S
Sergey Lerg, 2013-11-23
@Lerg

Crawler sites are still possible.
Go language or C.

I
iley, 2013-11-23
@iley

You can make a visualization based on some biological or physical process.
For example, we create a field of NxM cells, periodically generate "food" in random cells. "Ants" crawl across the field (each ant is controlled by a separate thread), for each step taken, the ant spends power, if the power is over, the ant dies. If the ant has found food, it eats and the strength is restored. You can also come up with some rule for the appearance of new ants.
Language - any with support of streams and graphics. For example, Python + PyGame, C#, Java, C++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question