How about define(develop) a new Perl5 package which encapsulate these kind
of functions(forks, alarm etc.) so that the scripts needs no change but
only replace the corresponding packages for a given platform ?
----------
From: Dick Hardt[SMTP:Dick_Hardt@hip.com]
Sent: Thursday, December 07, 1995 9:46 AM
To: djah@cix.compulink.co.uk; perl-win32@mail.hip.com
Cc: djah@cix.compulink.co.uk
Subject: Re: Multi-threaded server
This is something that alot of people want to do - we are looking at
several
options as to the best mechanism for this.
fork() is a b*tch in NT, and we are looking at an implementation of it, but
it would be quite limited.
Keeping in mind that threads are very "cheap" in NT, and processes are not,
another approach would be to take full advantage of the NT architecture and
implement a call back mechanism based on socket I/O completion ports or
somthing.
Anyones comments on these ideas would be appreciated.
-- Dick
At 10:11 PM 12/6/95 GMT, Duncan Harris wrote:
>
>Will it ever be possible to write a multi-threaded server for Perl on
>Win32? I presume fork() will never work, but will it be possible to use
>the NT spawn to similar effect? I guess that sockets cannot be shared
>between processes on NT, so does this mean no?
>
>Duncan Harris
>Sapio Design Ltd
>Manchester, U.K.
>
>
>
--~--~--~--~-- hi mom! -~--~--~--~--~--~--~--~--~
mailto:Dick_Hardt@hip.com fax: 604.654.9881
http://info.hip.com/info me: 604.685.0124
hip communications inc.
350 - 1122 Mainland Street, Vancouver BC, V6B 5L1
begin 600 WINMAIL.DAT
M>)\^(B\"`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$%@ ,`
M#@```,L'# `(``H`'@`M``4`0 $!"8 !`"$````V.3 T-$8S-S1!,S%#1C$Q
M0D-#03 P,C!!1C)%-#$R, `+!P$@@ ,`#@```,L'# `(``H`'@`N``4`00$!
M"( '`!@```!)4$TN36EC<F]S;V9T($UA:6PN3F]T90`Q" $$@ $`&@```%)%
M.B!-=6QT:2UT:')E861E9"!S97)V97(`(0D!#8 $``(````"``(``0.0!@`T
M!P``$@```$ `.0"@`UPM%<6Z`1X`< `!````%@```$UU;'1I+71H<F5A9&5D
M('-E<G9E<@````(!<0`!````&P````&ZQ%UO"7P3U>LOJ1'/O-4`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