Skip to main content

Posts

Featured

CST334: Operating Systems, Week 5

 Identify the topics we covered in class -- you can start by just listing them. Concurrency and Threads Threads API Locks Lock-Based Data Structures Explain what each of the topics were in your own terms -- take the identified topics and add a sentence or two describing them. Concurrency and Threads This topic introduced threads as multiple points of execution inside a single process. Each thread has its own program counter and stack, but all threads share the same address space. Because the OS scheduler decides which thread runs at any moment, the actual ordering of instructions becomes unpredictable, which creates both opportunities for speed and the risk of race conditions. Threads API The Threads API gave us the tools needed to create and manage threads using POSIX functions like pthread_create(), pthread_join(), and pthread_mutex_lock(). It also highlighted how arguments and return values must be handled carefully, especially when passing pointers, since each thread has its ow...

Latest Posts

CST334: Operating Systems, Week 4

CST334: Operating Systems, Week 3

CST334: Operating Systems, Week 2

CST334: Operating Systems, Week 1

CST363: Introduction to Database, Week 8

CST363: Introduction to Database, Week 7

CST363: Introduction to Database, Week 6

CST363: Introduction to Database, Week 5

CST363: Introduction to Database, Week 4

CST363: Introduction to Database, Week 3