Hey guys, I'm coming to you because I love you. I am working on a project in C++ and I was wondering if anyone knew how Linux handles sharing the processor as a resource across threads. Essentially, I have multiple threads that are going to be waiting for a flag to change. A colleague of mine said that a while loop waiting on a duration of time to pass might cause "spinning" to occur and make threads fight for resources. My colleague wrote the original code-base for the project I'm porting over to Linux. It was an embedded system that uses something called Keil OS, so it handles threads and deals with Interrupt Scheduling. Thoughts?