Skip to main content

Questions tagged [concurrency]

In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods. The computations may be executing on multiple cores in the same chip, preemptively time-shared threads on the same processor, or executed on physically separated processors.

Filter by
Sorted by
Tagged with
4 votes
1 answer
6k views

Unit test an ExecutorService in a deamon

To execute tasks sequentially with a timeout I use ExecutorService.submit() and Future.get(). As I don't want to block calling ...
4 votes
1 answer
423 views

Self-taught Pythonista: Any criticism welcome for this concurrent word count script!

I've been teaching myself Python - my first programming language - for about two years now. I recently discovered the concurrent.futures module and wanted to do ...
3 votes
2 answers
33k views

Reading output from multiple threads and writing to a file

There are 10 threads and I have 15 tasks. Now I have submitted all these tasks to these threads. I need to write all these threads output to a file which I was not successful. I am getting output by ...
1 vote
1 answer
170 views

Review of concurrent php logic for a web spider class

I wrote a web spider that I would like to download and parse pages concurrently. Here is what I am trying to achieve: instantiate a new instance of the class with the $startURL as the constructor ...

1
6 7 8 9
10