タグ

Rubyとosに関するohbaryeのブックマーク (2)

  • Garbage Collection in Ruby - Peter Zhu

    Overview Ruby’s garbage collector code lives in a single file called gc.c. “Garbage collector” is probably not the best term to call it because in addition to garbage collection, the code inside gc.c is responsible for memory allocation and management. In other words, the whole lifecycle of an object is managed by the garbage collector. Primitive object types While every type of Ruby object may ap

  • ファイルディスクリプタについて理解する - Qiita

    ファイルディスクリプタについて分かっているような分かっていないような感じだったのRubyでコードを書きつつ、理解したときのメモ 参考 ファイルディスクリプタ数の上限変更とlimits.confの罠 なるほどUnixプロセス ― Rubyで学ぶUnixの基礎 Shinpeim/process-book そもそもファイルディスクリプタとは何か 以下より引用 IT用語辞典 ファイルディスクリプタとは、プログラムがアクセスするファイルや標準入出力などをOSが識別するために用いる識別子。0から順番に整数の値が割り当てられる。OSによってはファイルディスクリプタにバッファ管理機能なども含めた「ファイルハンドル」と呼ばれる管理体系が存在する。 ファイルディスクリプタには、識別子とともにファイル名、ファイルサイズ、プログラムが操作中のファイル内の位置、ファイル作成、更新日時などの情報が含まれており、OSは

    ファイルディスクリプタについて理解する - Qiita
  • 1