MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Re: Multi-threaded mudding (was a flamefest)
[Jon L:]
:If OS multi-threading is superior to software time-slicing on your platform
:then it would follow, that a multi-threaded event-driven server would
:outperform a single-threaded event-driven server regardless of
:how many CPUs your processor has.
I don't see that. The advantage that multiple threads have over multiple
processes is that switching between OS-supported threads takes less CPU
work than switching between full processes. That distinction doesn't
exist if you are running only within one OS thread. In fact, it might
even be the other way - the thread switching you do within one process
costs more than just subroutine calls, as done without threads. Using
threads within one process *can* be beneficial in terms of structuring
(I did that in our user agent program at work, and it would have been
much more painful without the threads), but it is going to cost more
memory (stacks for the threads), and likely more CPU as well. If you
can use OS threads, I'd say do it - you never know when someone is going
to be able to run your system on a big multi-CPU machine.
--
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
- Thread context:
- Re: Prepositions and parsing, (continued)
- Comments on the DB layer,
clawrenc clawrenc#cup,hp.com, Wed 07 May 1997, 07:43 GMT
- Last sendmail test (we're up to 8.*)!,
coder coder#ibm,net, Sun 04 May 1997, 08:37 GMT
- Re: [MUD-Dev] Re: Multi-threaded mudding (was a flamefest),
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Sat 03 May 1997, 12:57 GMT
- More sendmail tests...,
coder coder#ibm,net, Sat 03 May 1997, 12:19 GMT
- Re: [MUD-Dev] Re: Multi-threaded mudding (was a flamefest),
Jeff Kesselman jeffk#tenetwork,com, Fri 02 May 1997, 10:30 GMT
[ Other Periods
| Other mailing lists
| Search
]