Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Any program in an OS only gets as much resources allocated to it as the OS allows (OK, in any general-purpose OS written in the past few decades). sched_yield() doesn't actually reduce that allocation in most cases, anyhow: in fact it has a higher chance of increasing the resources that the thread uses spinning in a loop because it's gonna be thrashing the scheduler as well.
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: