mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] TODO list


From: MLdonkey
Subject: Re: [Mldonkey-users] TODO list
Date: Sat, 21 Dec 2002 19:21:29 +0100

>  Yep I read MLDonkeys answer afterwards. However if thread synchronization
>  prooves to be difficult in ocaml, it might get quite complicated even for
>  something like md4 hashing. There has to be some few data that need to pass
>  between those threads (hash this file, hash result is...) and if there is
>  nothing or buggy synch-code, that might produce some entire new and nasty
>  bugs.

Ocaml supports multi-threading correctly, but not efficiently. In
particular, ocaml code is not executed concurrently (the GC needs a mutex).

>  Ah I've never looked at the Posix subsystem in NT. Win32 has a "native"
>  select call which is either in the standard Win32 API or in the winsock (I'm
>  rather convinced it resides in the winsock API). I haven't coded anything
>  for Win32 in two years so I'd have to look it up myself. But I've seen
>  select() and I've never looked at anything in the POSIX subsystem, so I'm
>  fairly sure there's two different kinds of 'em.

The port of mldonkey on MinGW already uses the native Win32 select
from winsock.h . This is possible since all accesses to the files are
done synchronously, so that only sockets are passed to the select call.

- MLDonkey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]