OS List
OS List
OS List
Figure #1
ls –l | wc output is
[ls –l | wc]
****************************************
ls –l | wc | wc output is
[ls –l | wc | wc]
****************************************
If the LogComm is on then the system should create a file named CommLog.txt which will
store information about all the commands executed in the system as follows
ls –l Success
ls –l | wc Success
ls –l | wc | wc Success
ls Success
ls >> a1.txt Success
‘N’ web users are accessing a website, their navigation pattern (sequence of web pages such as
a,b,c,d etc.) is recorded in a trie data structure. Your code should allow multiple users to read
from the trie data structure but only one user to update the data structure at a time. Also identify
the most visited page in the given patterns.
Project 47: Movie Booking System Simulation
Write the code to simulate the movie booking system in a theatre, using semaphores. The
problem should include the number of spectators in a theatre at a time, number of seats allotted
to a spectator, time allotted etc.
Project 48: Salesman Consumer Problem
Create five threads of a process ‘salesperson’, indicating five salesperson in a company and ten
threads ‘customers’. Show the communication among all threads showing how many items are
sold by which salesperson to whom. Assign unique ids to customers and salesperson. Print the
items sold with salesperson id and customer id.
Project 49: Printer Scheduling
Consider there is a single printer for CCE and CSE Dept. Write a scheduling algorithm such that
the single page print can interrupt the previously maintained queue and printed at the top
priority. Other documents are scheduled at the FCFS fashion. Your algorithm must avoid the
starvation using the concept of aging. Also write the code for the above algorithm.
Project 50: Computer Maintenance Scheduling
Consider that seven students and faculties are raising tickets on IT-Infra for installing a software,
resolving the hardware issues, system failure etc. Write the code to schedule the tickets to
minimize the waiting time and maximize the throughput. Think about the additional information,
if required. The acknowledgement for satisfied solutions to be recorded for future use.