U++ framework
Do not panic. Ask here before giving up.

Home » Community » Coffee corner » Quiz #4
Re: Quiz #4 [message #57811 is a reply to message #57810] Sun, 19 December 2021 09:28 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
You are not completely wrong.

1 really is the most probable result with current implementation. This is basically pure race condition - how many worker threads will CoDo unblock until it registers that first of them finished.

Anyway, INT_MAX is definitely a little bit high - the teoretical maximum is the number of worker threads.

Mirek

[Updated on: Sun, 19 December 2021 09:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Little Quiz
Next Topic: Quiz #3
Goto Forum:
  


Current Time: Wed Oct 14 23:57:32 GMT+2 2026

Total time taken to generate the page: 0.00848 seconds