-
umm what the f..
Now its working like it should. I didnt change a thing.
"Jay King" <nemopsj@aol.com> wrote in message news:3d9155b3@10.1.10.29...
> I am using a loop like
>
> strt:
>
> debug.writeling (randomnumberfunction)
>
> sleep(1)
> goto strt
>
> Now the sleep function is actually calling the timer and asking it to
sleep
> my thread for 1 milisecond. However it sleeps for what is almost a full
> second. When I remve the sleep the loop throw out random numbers as
> hundreds of numbers a second. So im wondering what could be the cause of
> this? Why isnt the timer object 'sleeping' my thread like it should.
>
> PS: Last night it was 'sleeping' my thread fine and the program only ate
up
> and extra 10% of cpu, however it doesnt owrk right anymore and I can only
> get gfast enough speeds without the sleep.. however that eats up to 80%
> extra cpu.
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks