Re: how to get the thread
Gerd Stolpmann <[email protected]> Sun, 27 Jan 2008 19:43:56 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Sonntag, den 27.01.2008, 18:02 +0100 schrieb Peter Halacsy: > hi, > > i'm using ocamlnet to download a lot of pages with a pipeline with the > size 200. I'd like to open as many files as many thread I use. But in > the callback function I don't know which thread executes the current codes. > > Do you have any suggestions? I don't understand. Ocamlnet does normally not use threads to achieve parallelism. So the answer: You know the thread, because it is always the same. Does this make sense to you? Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany [email protected] http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/