Lecture 006

Threads

Multithread

Potential Solution:

Benifits:

Kinds of Threads:

Cancelation

Asynchronous cancelation: NEVER DO THIS

Deferred cancelation: thread B checks if it should be canceled at certain points

setuid()

When a program is executed, it can run and switch between two identities:

During name->file, file->privilege mapping, race condition can happen allowing attacker to execute program with different privilege.

Table of Content