> 投稿者:擬古描 2000/06/25 (日) 06:33:53 ▼ ◇ [mirai]> > ∧
> > ー`)<ActivePerl 613はforkのシミュレートがあるので少し経済的
> あ、ついたんだ
∧
~`)<emulationだった
The fork() emulation is implemented
at the level of the Perl interpreter.
What this means in general is that running fork()
will actually clone the running interpreter and all its state,
and run the cloned interpreter in a separate thread,
beginning execution in the new thread
just after the point where the fork() was called in the parent.
We will refer to the thread that implements
this child ``process'' as the pseudo-process.
perlインタプリタを新しいthreadで起動してforkの直後から
実行させることでforkをエミュレートしてるさ
In the eyes of the operating system,
pseudo-processes created via the fork() emulation
are simply threads in the same process.
This means that any process-level limits imposed
by the operating system apply to all pseudo-processestaken together.
This includes any limits imposed
by the operating system on the number of open file,
directory and socket handles, limits on disk space usage,
limits on memory size, limits on CPU utilization etc.
でもthreadでしかないからそれなりの制限があるさ
参考:2000/06/25(日)06時24分02秒