jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

Nt/emu should yield more effectively #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
emu/Nt/os.c's osyield calls windows' Sleep(0) but that wastes time.

Original issue reported on code.google.com by Charles....@gmail.com on 26 May 2011 at 5:24

GoogleCodeExporter commented 9 years ago
use a different system call (slightly oddly named "SwitchToThread").
it's only available for NT>=4 but I think that's ok this century.

CHANGES
emu/Nt/os.c
include/version.h
committed changeset 514:96405130ea56

Original comment by Charles....@gmail.com on 26 May 2011 at 5:26