| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: DosRead - Framing? |
MK> For what I have experience with -- generic BBS stuff -- secondary com
MK> threads are generally a waste of CPU. However, I can envision situations
Just because a thread exists does not mean it is using more CPU.
A secondary thread, with the proper read mode
(wait-for-something),allows you to miminimize the number of DosRead's you
have to do, thus saving _loads_ of CPU. A well written two-thread read
model will be faster and more efficient than a one thread model;similarly
for writes if you are doing lots of small ones.
It also :
- allows a much larger buffer than the puny one in com.sys,
- better lends itself to having a data-driven design in your program.
- "does nothing" better.
--- Maximus/2 2.02p1
* Origin: Sol 3/Toronto (905)858-8488 (1:259/414)SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955 SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809 @PATH: 259/414 400 99 250/702 3615/50 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.