Re:Why did moving the mouse cursor cause Windows 95 to run m...
by snarfy on Wednesday July 03, 2019 @10:09AM
(#20344393)
It's this bit of code:
The mouse isr would cause a loop like this to execute at some point, processing all the messages on the queue. Win95 had preemption, but it ran at 100hz. Moving the mouse caused additional queue processing on top of the time sliced preemption.
[ Parent
| on HN ]
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by tempguy9999 on Wednesday July 03, 2019 @12:02PM
(#20345510)
I thought the windows clock defaulted to ~60Hz. I understand it could be pushed up by software to 1Khz for audio players to work correctly. I may be very wrong on the latter point though.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by cantstop on Wednesday July 03, 2019 @10:19AM
(#20344482)
At that time, it was more like the 75mhz range.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by achandlerwhite on Wednesday July 03, 2019 @10:57AM
(#20344784)
Note he said 100hz not mhz. Essentially 100 times per second the message queue would process but if you moved the mouse it would process faster.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by the-dude on Wednesday July 03, 2019 @12:05PM
(#20345541)
And the BSDs and Linux also have the HZ parameter for scheduling and for a long time the default has been as low as 100 Hz.
Not sure what the current status quo is.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by kllrnohj on Wednesday July 03, 2019 @09:39PM
(#20350778)
Linux's default varies per architecture & platform. For a long, long time on ARM it still defaulted to 100hz. I think it's more like 250hz or 500hz now? You'll also see x86 desktop-focused build set it to 1000hz.
But scheduling happens far more often than this tick rate, too, so it's only preemption for busy threads and controls the timing windows for things like DVFS.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by trasz on Wednesday July 03, 2019 @12:44PM
(#20346031)
For FreeBSD it's been 1000 for... ages, except for virtual machines, where it seems to be 100 by default.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by asveikau on Wednesday July 03, 2019 @02:35PM
(#20347195)
Some guides for better battery life on FreeBSD recommend setting it to 100 Hz.
Re:Why did moving the mouse cursor cause Windows 95 to run m...
by brandmeyer on Wednesday July 03, 2019 @02:35PM
(#20347199)
Tickless