argra****@users*****
argra****@users*****
2008年 10月 16日 (木) 02:47:52 JST
Index: docs/perl/5.10.0/perlthrtut.pod diff -u docs/perl/5.10.0/perlthrtut.pod:1.3 docs/perl/5.10.0/perlthrtut.pod:1.4 --- docs/perl/5.10.0/perlthrtut.pod:1.3 Wed Jul 9 03:40:20 2008 +++ docs/perl/5.10.0/perlthrtut.pod Thu Oct 16 02:47:51 2008 @@ -770,9 +770,8 @@ =end original -With threads one must be careful to make sure they all have a chance to -run to completion, assuming that is what you want. -(TBT) +スレッドを使う場合は、全てのスレッドが確実に完全に実行される(それが +あなたの望むもののはずです)ように注意しなければなりません。 =begin original @@ -784,12 +783,10 @@ =end original -An action that terminates a process will terminate I<all> running -threads. die() and exit() have this property, -and perl does an exit when the main thread exits, -perhaps implicitly by falling off the end of your code, -even if that's not what you want. -(TBT) +プロセスを終了させる行動は実行中の I<全ての> スレッドを終了させます。 +die() と exit() はこの性質を持ち、(あなたが望んでいないとしても) +おそらくは暗黙のうちにコードの最後に到達することによってメインスレッドが +終了すると、perl は終了します。 =begin original @@ -2331,11 +2328,11 @@ C<fork()> とスレッドを混在させたらどうなるかって? そんな気分が失せるまで、横になって休んでいてください。 -Be aware that the semantics of C<fork()> vary -between platforms. For example, some UNIX systems copy all the current -threads into the child process, while others only copy the thread that -called C<fork()>. You have been warned! -(TBT) +C<fork()> の動作はプラットフォームによって異なることに注意してください。 +例えば、UNIX システムには現状の全てのスレッドを子プロセスに +コピーするものもありますが、C<fork()> を呼び出したスレッドのみを +コピーするものもあります。 +あなたは警告されました! =begin original