| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosRead blocking |
-=> Quoting Peter Fitzsimmons to Phil Crown <=-
PF> I have written a lot of OS/2 comm software. None of them use time
PF> critical. What I usually do is run all threads at "regular", and
PF> allow an option to run at "foreground server" for taxed
systems; for
PF> the later, however, I raise the priority of all of the threads, not
PF> just the comm thread, so that the balance I described above is
PF> maintained.
Hmmm. That's an interesting spin on the problem. I hadn't though of that
to be honest ... :) I've been playing with your PMTERMSR.LZH file. Clean
code although I don't understand a lot of it (particularily the PM stuff).
So, in your opinion, I should have a thread that deals with incoming comm
bytes, a thread for outgoing comm bytes, a thread for disk reads, a thread
for disk writes and a "traffic-cop" thread? For serial I/O that seems a
bit redundant. For my needs, I'll be reading a single byte (or maybe a
group of bytes) at a time. Output I could see a separate thread, but for
input, I could make the input non-blocking and just see if anything is
waiting for me and let the OS be the thread.
I guess the other question would be, if I do go ahead and do a thread for
input and one for output how would I go about making this dumb thing a C++
class or something ... That's my other sticky question. :)
={) James (}=
--- Blue Wave/DOS v2.30
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 640/201 711/401 409 410 413 SEEN-BY: 711/430 808 809 934 955 712/311 407 505 506 517 623 624 704 841 SEEN-BY: 713/317 800/1 @PATH: 106/2000 396/1 270/101 712/624 711/808 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™.