TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ian Timms
from: Peter Fitzsimmons
date: 1995-04-15 17:37:50
subject: RXASYNC - Serial I/O

IT> More BOLSH. There is nothing stopping programs from sharing
 IT> resources under OS/2, only narrow minded application designers.

 IT> Process can share resources perfectly well as long as such
 IT> sharing is co-ordinated.

And the enforcement mechanism is to open the port with "deny
read/write" so that another process can NOT open the port.  The
co-ordination is performed by passing the handle to another process.

Anything else is just going to leave a headache for the end user, who is
not smart enough to enforce this on their own in a multitasking OS.

 IT> BOLSH again. The mechanism you are referring to is the restriction
 IT> imposed by Maximus when it opens the comm port, it has nothing 
 IT> whatsoever to do with anything being imposed by the operating system,
 IT> except that that is what has been requested of it when the
 IT> port was opened.

The serial port and parallel port are examples of devices are are
inherently single-user.  It is the applications programmer's duty to
protect them.

I don't care if this pisses off a few bbs sysops who are whining about not
being able to let a DOS door program re-open a com port illegally.

I guess I am just too used to writing programs that don't have bugs built
into them on purpose.


 IT> This mentallity of being the only user of every resource you open
 IT> is something which needs to be stamped out if we are to truly
 IT> multitask.

We are discussing a resource that is intrinsically single use.

The fact that you can not "monitor", as you say,  the device from
another session is a feature missing from com.sys.  It has nothing to do
with the application.


--- Maximus/2 2.02p1
* Origin: Sol 3/Toronto (905)858-8488 (1:259/414)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 259/414 400 99 250/702 3615/50 396/1 270/101 105/103 42 712/515
@PATH: 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™.