On Sun, Jan 07, 2007 at 07:18:24PM -0000, deech_99 wrote:
> I am considering Ocaml for a project where a client requests JPEG
> images from multiple databases running on remote machines.
>
> On the client GUI I want to have red/green lights that flash red when
> a database is no longer accessible.
>
> Each of these lights then is a thread that sleeps for a while, wakes
> up, pings the server, outputs the result to the GUI and goes back to
> sleep.
>
> Given that Ocaml does not have thread support is this possible?
OCaml does have thread support, so this will work fine.
You're a bit vague on essential details like what database(s) you're
querying and what GUI system you'll be using, so it's hard to go any
further and say whether this is a good use of OCaml and/or threads.
Also have you thought about an off-the-shelf system, like a network
monitoring system?
Rich.
--
Richard Jones
Red Hat UK Limited
.