Linus Torvalds: Linux Scheduler Not to Blame for Google Stadia Port Issues

Linus is right. Don’t use spinlocks in user-land. The scheduler can’t know you’re spinning on a lock, so it can’t help you. Don’t do dumb things — spinning on a lock in user-land is dumb. Mutexes are as fast as spinlocks in the uncontended case, so use mutexes.

“do not use xxx, unless…

Link: Linus Torvalds: Linux Scheduler Not to Blame for Google Stadia Port Issues
via news.ycombinator.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s