Turboimage Database Enhancements - August 2001
Thread Characteristics:
•Thread has its own PIN
•Thread has its own stack
•Thread shares SR5 space
•Runtime Control Block (DBUX/DBU)
- One per DBOPEN
- transaction information
- locking information
- logging information
- current record pointers
- opened files
- trailer area
•Global Variables
- qlock_trace
- bti_global
- ccu_global
- chunk_control
•Open Files
- except rootfile, not using file system intrinsics
- maintain own current record pointers
- use SMCB
Problems for not being thread safe:
•Runtime control block
•Global variables
•Open files