James Edward Gray II <james / grayproductions.net> writes: > On Aug 9, 2005, at 12:57 PM, Yohanes Santoso wrote: > >> James Edward Gray II <james / grayproductions.net> writes: >> >> >>> Does this do all it's socket work in C, to bypass Ruby's Thread >>> blocking issues? >>> >> >> What blocking issue? > > Writing a large chunk of data to a file, for example. Ruby will > block until the write completes. Disk I/O will always block the process executing it. only way to avoid that is to have another process do the disk I/O (at least on linux, *bsd; there used to have a unix that does not have this limitation, but i can't remember the name). Using native thread also does not help since the whole process is blocked. YS.