STREAMS Programming Guide

Exit Print View

Updated: July 2014
 
 

MT SAFE Modules and Drivers

A module or a driver can be either MT SAFE or MT UNSAFE. A module or driver is MT SAFE when its data values are correct regardless of the order that multiple threads access and modify the data. For MT SAFE mode, use MT STREAMS perimeters to restrict the concurrency in a module or driver to:

  • Per-module single threading

  • Per queue-pair single threading

  • Per queue single threading

  • Per queue or per queue-pair single threading of the put and service procedures with per module single threading of the open and close routines

  • Unrestricted concurrency in the put and service procedures with the ability to restrict the concurrency when handling messages that modify data

  • Completely unrestricted concurrency