Threads(cont Because all threads in a task share the same address space, all threads must enter a suspend state at the same time Thread functionalit thread states running, ready blocked · no suspend state thread operations spawn, block, unblock, finish thread synchronization The alteration of one resource by a thread affects other threads e.g., opening files same techniques as process synchronization13 Threads (cont.) • Because all threads in a task share the same address space, all threads must enter a suspend state at the same time. • Thread functionality – thread states • running, ready, blocked • no suspend state • thread operations – spawn, block, unblock, finish – thread synchronization • The alteration of one resource by a thread affects other threads. – e.g., opening files • same techniques as process synchronization