Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Quiz #4
Re: Quiz #4 [message #57804 is a reply to message #57803] Sat, 18 December 2021 14:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Oblivion wrote on Sat, 18 December 2021 10:24
Quote:
Now for something much more fun:

CONSOLE_APP_MAIN
{
int x = 0;
CoDo([&] {
CoWork::FinLock();
x++;
});
DDUMP(x);
}



What can you say about the number printed to the log?


Ideally it should be 1.

But in this case the result should (or expected to) be "0 < x <= INT_MAX", depending on the underlying hardware/OS task/process scheduling?

Best regards,
Oblivion



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


Current Time: Tue May 14 21:14:43 CEST 2024

Total time taken to generate the page: 0.01860 seconds