Windows VM: Are delays shorter than 10ms possible?
Nathanael Schärli
n.schaerli at gmx.net
Thu Jun 20 16:34:02 UTC 2002
Andreas, John,
Thanks for your hints. I must have missed the discussion about that.
With the new VM everything is working fine.
Thanks,
Nathanael
-----Original Message-----
From: squeak-dev-admin at lists.squeakfoundation.org
[mailto:squeak-dev-admin at lists.squeakfoundation.org] On Behalf Of
Andreas Raab
Sent: Thursday, June 20, 2002 6:19 PM
To: squeak-dev at lists.squeakfoundation.org
Subject: RE: Windows VM: Are delays shorter than 10ms possible?
Nathanel,
This problem has been fixed since then. Get a later VM and all should be
fine.
Cheers,
- Andreas
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Nathanael Schärli
> Sent: Thursday, June 20, 2002 5:26 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Windows VM: Are delays shorter than 10ms possible?
>
>
> Hey
>
> I wanted to use short delays (1 or 2ms), nut I run into the
> problem that
> the windows VM does not seem to be able to do this. When I print
>
> d _ Delay forMilliseconds: 1.
> [d wait] timeToRun
>
> I get the value 10, and similarly, when I execute
>
> d _ Delay forMilliseconds: 1.
> [1000 timesRepeat: [d wait]] timeToRun
>
> I get a value of about 1000.
>
> When I wanted to track down the problem I found the method Delay
> class>>primSignal:atMilliseconds:, which calls a primitive that is
> supposed to signal the given semaphore after the given amount of
> milliseconds. However, when I execute
>
> [s _ Semaphore new.
> Delay primSignal: s atMilliseconds: 1.
> s wait] timeToRun
>
> I also get 10 as an answer, which indicates that the
> primitive does not
> work properly for small numbers.
>
> Did anyone run into the same problem and what do you suggest to fix
> this?
>
> Cheers,
> Nathanael
>
> BTW: I'm using VM 3.1 alpha build 6 (May 17, 2002)
>
>
More information about the Squeak-dev
mailing list
|