(***********************************************************************) (* *) (* OCaml *) (* *) (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *) (* *) (* Copyright 1996 Institut National de Recherche en Informatique et *) (* en Automatique. All rights reserved. This file is distributed *) (* under the terms of the Q Public License version 1.0. *) (* *) (***********************************************************************) let print_message delay c = while true do print_char c; flush stdout; Thread.delay delay done let _ = Thread.create (print_message 0.6666666666) 'a'; print_message 1.0 'b'