Resource Sharing in Multi-Threaded App
Posted on 2000-04-17
Object x contains an object that provides access to a serial com port. When a particular event occurs, object x creates a thread that access this serial com port. When the thread is done accessing the com port, it dies. This process is repeated over time.
While, the first thread successfully accesses the com port, when the next thread accesses the com port, there is no system failure, but all the read/write commands to the com port do not work.
Does a handle or something need to be passed between threads to allow them to share the serial com port?