-
Here is the example code.open System open System.Threading let main argv = let monitor_ = new Object() lock monitor_ (fun()-> (** your code goes here **) ) 0 // return an integer exit code