[Simh] VAX: CPU Usage and Network Timeout

Tim Newsham newsham at lava.net
Thu Jun 9 14:56:50 EDT 2005


> Ideally I would recommend merging all the file handles into the select
> set. The tcp listen port(s), the current connections, the console, any
> disk, tape or other device handles, etc. Then the sleep can be woken up
> by any of them. Things like reading from tape won't sleep in practice
> for emulated files, but when they are attached to real devices, they
> could block for a while the way things are now.

How do you intend to support platforms such as win32 which do not
allow a select on the console?

>> The best way would be to tell the emulator the location of the idle loop.
>> It usually resides at a specific location for most OS's. Then just watch
>> for that location.
>
> if known, sure. But watching for PC looping on a small set of
> instructions might be able to figure that out by itself.

What logic would you propose to detect these loops?
Sounds expensive.

> Tim Riker - http://Rikers.org/ - TimR at Debian.org

Tim Newsham
http://www.lava.net/~newsham/



More information about the Simh mailing list