Posts

Classical Problems of Synchronization in OS

Image
  Classical Problems of Synchronization in OS Introduction Synchronization in operating systems (OS) is a critical concept, pivotal for maintaining harmony among multiple processes. This technique ensures that shared resources are accessed in an orderly manner, preventing conflicts & ensuring efficiency. Grasping this concept is essential for students delving into the intricacies of OS design & functionality. In this article, we will learn about different synchronization problems in operating systems.  Synchronization Problems Bound-Buffer Problem In computing, the Bound-Buffer problem is a classical synchronization challenge. It's about managing data in a buffer that has limited capacity. Picture a scenario where multiple processes are either putting data into the buffer (producers) or taking data out (consumers). The crux is to ensure that a producer doesn’t add data to a full buffer, & a consumer doesn’t try to remove data from an empty one.  This problem i...

Semester IV : Assignment #1 OPERATING SYSTEM

                                              Assignment #1  OPERATING SYSTEM                                                                                    (Based on Ch 1,2,3)           I) Answer the following :-  1. List and Explain the services provided by the Operating System. 2. Explain the Process Control Block with Diagram? 3. Explain in detail Medium Term Scheduler ? 4. What is a Process ? Explain the state of Process?       Explain the Process Creation and Process Termination ? 5. Which are Information Ma...

SEMESTER IV : Assignment #1 NETWORKING

 Assignment #1  NETWORKING Q1)  Explain the Classification and Types of Network Topologies with Diagrams? Q2) Give the difference between LAN,WAN and MAN ? Q3)  Explain the comparison between Connection Oriented Service and Connectionless Services ? Q4) Explain the OSI Reference Model with the 7 layers in detail and Diagrams ? Q5) What is Addressing ? What are the levels of Addresses used in TCP/IP Protocol ?

Programs to be practiced in the Lab

Image
 Programs to be practiced in the Lab. These programs will help u in your theory and practical exams. A) Write a C program to swap m and n element of single linked list. #include<stdio.h> #include<conio.h> struct list { int data; struct list *link; }*start=NULL; void creat(int); void swap(); void disp(); void main() { int ch,i,n,m; clrscr(); do { printf(“\n1.create”); printf(“\n2.display”); printf(“\n3.Swap”); printf(“\n4.exit”); printf(“\nenter ur choice”); scanf(“%d”,&ch); switch(ch) { case 1: printf(“\nHow many nodes”); scanf(“%d”,&n); for(i=0;i<n;i++) { printf(“\nEnter the data”); scanf(“%d”,&m); creat(m); } break; case 2: disp(); break; case 4: exit(0); case 3: swap(); break; } } while(ch!=4); getch(); } void creat(int m) { struct list *tmp,*q; tmp=(struct list *)malloc(sizeof(struct list)); tmp->data=m; tmp->link=NULL; if(start==NULL) start=tmp; else { q=start; while(q->link!...