Notes and examples for multithreaded TTY drivers
This chapter has not been reviewed for the current release.
The information is generally accurate,
although some details may have changed.
Check the appropriate manual pages
for the most current information.
``Multithreading device drivers''
discusses the SCO multiprocessing architecture
and gives guidelines for multithreading drivers.
This section examines the procedures
for converting a TTY character device driver
to take advantage of multiprocessing capability.
The procedure for multithreading TTY
character device drivers
can be summarized in these stages:
Register the driver as multithreaded.
Ensure mutual exclusion applies to the
modifications (either setting or clearing the flag).
Modify the driver routines:
Identify critical code and add locks to ensure mutual exclusion.
© 2005 The SCO Group, Inc. All rights reserved.