[Mono-bugs] [Bug 649426] Async.Sleep(1) in F sharp consumes 100% of CPU

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 26 18:05:06 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=649426

https://bugzilla.novell.com/show_bug.cgi?id=649426#c1


--- Comment #1 from Igor Plotnikov <igor at xambala.com> 2010-10-26 22:05:06 UTC ---
Sorry, should be Async.Sleep(1). If called with 0, results in 100% CPU
consumption on both .Net and Mono

-----------
#light

open System
open System.IO



[<EntryPoint>]
let main (args : string[]) =

    let fileread =
        async {

                while true do
                    do! Async.Sleep(1)
                ()
        }
     |> Async.RunSynchronously

    0

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list