Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inject a function (queue like)
#6
At the beginning insert

lock

Then next thread will wait until previous thread leaves the locked code. Will be sequential execution instead of parallel.

But the number of threads is limited to 500 or 1000, don't remember. If will be many waiting threads, will need a queue, more work.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)