1. Write a program to find simple interest of any principal amount taking all input from user. 2. Write a program to find the sun of n natural numbers and also find the average of those. 3. Writre program to display whether the year entered by user is leap year or not. 4. Write a program to find find whether the number entered by user is palindrome or not. 5. Write a program to find the smallest among 3 numbers. 6. Write a program to print the factorial of numbers. 7. Write a program to print multiplication table of any numbers. 8. Write a program to print the fibonacci series upto n numbers. 9. Develop a Student Result Processing System that takes a student’s name and marks of five subjects, then calculates the total and percentage. If any subject mark is below 40, the student is Fail . Otherwise, assign division based on percentage: 80%+ Distinction, 60–79 First, 50–59 Second, 40–49 Third. Finally, display total, percentage, division, and Pass/Fail status. 10....
Introduction to Deadlock A deadlock is a situation in an operating system where a set of processes are permanently blocked because: · Each process is holding at least one resource · Each process is waiting for another resource held by some other process As a result, none of the processes can continue execution , and the system becomes stuck. Real-Life Example: Two Cars on a Narrow Road Imagine two cars coming from opposite directions on a narrow one-lane road where only one car can pass at a time. They meet in the middle. Now: · Car A cannot move forward unless Car B moves back. · Car B cannot move forward unless Car A moves back. · Neither car is willing or able to move backward. So: · ...