UNIXの関連書籍について話すスレ
前スレ
http://pc.2ch.net/test/read.cgi/unix/941565661/
探検
参考になる書籍part2
1名無しさん@お腹いっぱい。
NGNG05/02/19 23:27:17
覚えがあるなあ。本棚から探してきた。
古典的な論文
"The Evolution of the UNIX Time-sharing System"
D.M.Ritchie
に載ってる話だな。
「UNIXタイムシェアリング・システムの発展」という記事として
「UNIX原典」(パーソナルメディア)ISBN4-89362-014-2
に和訳が収録されてる。
古典的な論文
"The Evolution of the UNIX Time-sharing System"
D.M.Ritchie
に載ってる話だな。
「UNIXタイムシェアリング・システムの発展」という記事として
「UNIX原典」(パーソナルメディア)ISBN4-89362-014-2
に和訳が収録されてる。
05/02/19 23:28:28
今読み直してみたんだが、その記憶はちょっと間違いで、
最初の頃は fork がなくて、シェルのコマンド呼び出しは、
1. シェルが exec もどきを実行してコマンドを呼び出す。
シェルは fork しないというか、そもそも fork 機能が
ないので、シェルとシェルから呼び出されるコマンドは、
同一のプロセスになる。
2. コマンドが完了すると、カーネルが exec もどきを
実行して、そのプロセスをシェルに戻す。
という風に動いていたから、chdir が外部プロセスでも
ちゃんと動作した。しかし、fork の機能が追加されて、
シェルとシェルから呼ばれるコマンドが別プロセスに
なったら chdir が動かなくなってしまった…
っていう話だったよ。
今読み直してみたが、誤植はひどいし、訳も駄目駄目だなあ。
でも中身は今読んでもおもろい。
最初の頃は fork がなくて、シェルのコマンド呼び出しは、
1. シェルが exec もどきを実行してコマンドを呼び出す。
シェルは fork しないというか、そもそも fork 機能が
ないので、シェルとシェルから呼び出されるコマンドは、
同一のプロセスになる。
2. コマンドが完了すると、カーネルが exec もどきを
実行して、そのプロセスをシェルに戻す。
という風に動いていたから、chdir が外部プロセスでも
ちゃんと動作した。しかし、fork の機能が追加されて、
シェルとシェルから呼ばれるコマンドが別プロセスに
なったら chdir が動かなくなってしまった…
っていう話だったよ。
今読み直してみたが、誤植はひどいし、訳も駄目駄目だなあ。
でも中身は今読んでもおもろい。
05/02/19 23:38:58
ググってみたが、原文は
ttp://cm.bell-labs.com/cm/cs/who/dmr/hist.html
にあるな。
この中の「Process control」の項がその話。
The most memorable of these became evident soon after
the new system came up and apparently worked. In the
midst of our jubilation, it was discovered that the
chdir (change current directory) command had stopped
working. There was much reading of code and anxious
introspection about how the addition of fork could
have broken the chdir call. Finally the truth dawned:
in the old system chdir was an ordinary command; it
adjusted the current directory of the (unique) process
attached to the terminal. Under the new system, the
chdir command correctly changed the current directory
of the process created to execute it, but this process
promptly terminated and had no effect whatsoever on
its parent shell! It was necessary to make chdir a
special command, executed internally within the shell.
jubilation は大喜びとか祝祭って意味ね。
ttp://cm.bell-labs.com/cm/cs/who/dmr/hist.html
にあるな。
この中の「Process control」の項がその話。
The most memorable of these became evident soon after
the new system came up and apparently worked. In the
midst of our jubilation, it was discovered that the
chdir (change current directory) command had stopped
working. There was much reading of code and anxious
introspection about how the addition of fork could
have broken the chdir call. Finally the truth dawned:
in the old system chdir was an ordinary command; it
adjusted the current directory of the (unique) process
attached to the terminal. Under the new system, the
chdir command correctly changed the current directory
of the process created to execute it, but this process
promptly terminated and had no effect whatsoever on
its parent shell! It was necessary to make chdir a
special command, executed internally within the shell.
jubilation は大喜びとか祝祭って意味ね。
レスを投稿する
ニュース
- れいわ議員「母親はね、子どもを戦争に行かせるために産んだんじゃないんだよ」 高市総理に“10秒回答”迫り、残り5分は“独壇場” [♪♪♪★]
- 「こども2万円給付」は“ずるい”?「子持ちだけ優遇されてる」「来年から独身税もあるのに」…子育て世帯への支援は“不公平”なのか★3 [♪♪♪★]
- 高市首相「従来の立場超えたと受け止められ反省」 存立危機発言巡り ★3 [蚤の市★]
- 【東京】赤坂サウナ火事2人死亡 サウナ室のドアノブ外れ閉じ込められた可能性 ★6 [nita★]
- BreakingDown選手がくも膜下出血、瓜田純士、平手打ちを行った江口響は「もう格闘技も辞めます。責任取りたいです』とまで言ってきてる」 [muffin★]
- 「ここぞとばかりにBreakingDownを叩いてる奴らが気持ち悪くてしょうがない」元王者が騒ぐ世論に苦言 [王子★]
- 【高市速報】ヤフコメアンケート「上野動物園にパンダは必要?」パンダはいらないが脅威の90%😳★2 [931948549]
- 【実況】博衣こよりのえちえちダンガンロンパ3🧪
- 【実況】博衣こよりのえちえちダンガンロンパ2🧪
- 【高市速報】ヤフコメアンケート「上野動物園にパンダは必要?」パンダはいらないが脅威の90%😳 [931948549]
- 🦥🦧🐾おまっとさんです🐾🦧🦥🦥🏡
- 小麦、世界各地で豊作観測、5年ぶり安値圏で国内パン・麺に恩恵も [943688309]
