[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

6781: [MUD-Dev] Re: lurker emerges

[Full Header] [Plain Text]
From: Petri Virkkula <pvirkkul@iki.fi>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 9 Aug 1998 22:39:54 +0300 (EEST)
References: [1]
Organization: Kanga.Nu
>>>>> "Chris" == Chris Gray <cg@ami-cg.GraySage.Edmonton.AB.CA> writes:

Chris> In general, I think its clear that threading will only actually increase
Chris> your speed if your system has multiple CPUs. You may well choose to use

	That's only true if your program is CPU bound. If the program
	is I/O bound then count of physical disks is more relevaant
	factor. In a mixed case I would use (this is only a guess)
	x+2*y as formula for optimal thread count (x is count of CPUs
	and y is count of physical disks), count of physical disks are
	multiplied with 2 to keep disks busy all the time.

Chris> threading for other reasons (e.g. on WIN32 you often have no choice).
Chris> Threading has overhead over non-threading, and there isn't anything you
Chris> can do about that.

	Don't forget that non-threading has overhead too: if there is
	multiple file descriptors then select'ing and going through
	fd_sets can burns CPU time too.


	Petri