while(true)

Selim Ozel sozel at wpi.edu
Sat Sep 25 09:35:16 UTC 2021


Let's say that I have a simple D program as follows:
```
void main() {
   while(true) {
   }
   assert(false);
}
```

It will run until killed. It also uses a lot of CPU. Is there a 
good DLang way to make it use less CPU?

Selim


More information about the Digitalmars-d mailing list