Back to Browse

Deadlock in OS || Program to simulate Deadlock || C Program

12.1K views
Jan 14, 2022
13:01

In this lecture on Deadlock in OS, you will learn how to write a program to simulate deadlock between threads using c language in Linux environment. Deadlock in OS is a situation in which the system is not able to progress any further. Deadlock in operating system is a situation that occurs when a process or thread enters a waiting state because a resource requested is being held by another waiting process, which in turn is waiting for another resource held by another waiting process. In a deadlock state, a process is unable to change its state(waiting) indefinitely because the resources requested by it are being used by another waiting process. This program to simulate deadlock in OS makes use of two threads and two resources to create a circular wait situation Subscribe - https://www.youtube.com/c/dextutor This lecture is part of the Operating System Lab playlist: https://www.youtube.com/playlist?list=PLlr7wO747mNp5nn0hteJFnt1rpdx6GG-_ For Program code and more details visit: https://dextutor.com/program-to-create-deadlock-using-c-in-linux/ Reference Videos: 1. Linux installation: https://youtu.be/5Vb1jPbjKSE 2. System calls: https://youtu.be/DJ_GcdS-rmE 3. Process Creation: https://youtu.be/VdCkrykPy_k Tools Required: 1. Linux environment 2. Basic knowledge of C Language 3. gcc compiler installed Reference Links: Operating System Theory PPTs Link: https://dextutor.com/courses/operating-systems/ Operating System Programs: https://dextutor.com/courses/operating-system-programs/ Other Playlists: OS: https://www.youtube.com/playlist?list=PLlr7wO747mNojSVwJR1oYVs3Sq6iVziIk Linux Essential: https://www.youtube.com/playlist?list=PLlr7wO747mNqhqzZoiGhgBVsboYxTW4XQ RHCSA: https://www.youtube.com/playlist?list=PLlr7wO747mNrUoTuXhZ0REJw3hL4oWvLm Was this tutorial about Deadlock in OS helpful? If so, please share. Let me know your thoughts in the comments. #linux #oslab #os #dextutor #deadlock

Download

0 formats

No download links available.

Deadlock in OS || Program to simulate Deadlock || C Program | NatokHD