Mail Archives: djgpp/1999/11/03/23:16:54
On Tue, 2 Nov 1999, Francisco Pastor Gomis wrote:
> __dpmi_yield seems like well in OK in Win98, but in WinNt, when I run may
> program in a DOS command window, it appear a process called NTVDM that spend
> all the CPU (not the procees related to the command prompt that spend no CPU
> time in the NT Task Manager).
Does this mean that the Task Manager shows 100% CPU used during this
time?
> When the program is in backgroud, I feel that the system run slowly.
>
> >Which version of NT do you have installed?
>
> My version is Win NT 4.01, Service Pack 5.
I tested this on NT 4SP3, and the Task Manager shows a negligible
amount of CPU used when programs like Less and Info wait for a user to
type something. Both of these programs call __dpmi_yield in their
idle loop.
Are you sure you call __dpmi_yield correctly? Perhaps it is
worthwhile to try Less and/or Info on your NT system: if they, too,
cause 100% of CPU time to be used, then this is something specific
either to your version of NT or to its configuration.
- Raw text -