Multi thread, array yes or no?

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Re: Multi thread, array yes or no?

Postby mark_c » Fri Feb 07, 2020 12:53 am

thanks Remy.
However, it was wanted to start a certain number of threads through a for () loop and then, when one of them ends, a new thread starts in its place.

Thanks again
mark_c
BCBJ Master
BCBJ Master
 
Posts: 203
Joined: Thu Jun 21, 2012 1:13 am

Re: Multi thread, array yes or no?

Postby rlebeau » Fri Feb 07, 2020 7:05 pm

mark_c wrote:However, it was wanted to start a certain number of threads through a for () loop and then, when one of them ends, a new thread starts in its place.


The example I gave you on Feb 5th does exactly that.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1649
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: Multi thread, array yes or no?

Postby mark_c » Sat Feb 08, 2020 1:56 am

rlebeau wrote:
mark_c wrote:However, it was wanted to start a certain number of threads through a for () loop and then, when one of them ends, a new thread starts in its place.


The example I gave you on Feb 5th does exactly that.


sorry Remy,
Once a thread terminates, it can't be reused.

I had missed this sentence of yours, which I then wrote too, a forgetfulness, my fault.
mark_c
BCBJ Master
BCBJ Master
 
Posts: 203
Joined: Thu Jun 21, 2012 1:13 am

Previous

Return to Technical

Who is online

Users browsing this forum: No registered users and 20 guests

cron