Operating Systems Lab PCCSL407 Scheme and Syllabus

 

OPERATING SYSTEMS LAB

(Common to CS/CD/CM/CR/CA/AI/CB/CN/CC/CU/CI/CG)

 

CourseCode

PCCSL407

CIEMarks

50

Teaching Hours/Week (L: T:P: R)

0:0:3:0

ESEMarks

50

Credits

2

ExamHours

2Hrs.30Min.

Pre requisites(ifany)

GYEST204

CourseType

Lab

 

Course Objectives:


1. To familiarize various Linux commands related to Operating systems.

2. To give practical experience for learners on implementing different functions of Operating systems such as process management, memory management, and disk management.

Expt. No.

Experiments

1

Familiarisation with basic Linux programming commands:

ps,strace, gdb,strings, objdump, nm, file, od, xxd, time, fuser, top

 

 

 

 

2

Use/proc file system to gather basic information about your machine:

                      (a)    Number of CPUcores

(b)    Total memory and the fraction of free memory

(c)     Number of processes currently running.

(d)    Number of processes in the running and blocked states.

(e)     Number of processes forked since the last bootup. How do you compare this value with the one in (c) above?

(f)     The number of context switches performed since the last bootup for a

particular process.

 

3

Write a simple program to print the system time and execute it. Then use the /proc file system to determine how long this program(in the strict sense,the corresponding process) ran in user and kernel modes.

4

Create a new process using a fork system call.Print the parent and child process IDs.Use

the pstree command to find the process tree for the child process starting from the init


 

process.

 

 

5

Write a program to add two integers(received via the commandline)and compile it to an executable named “myadder”. Now write another program that creates a new process using a fork system call. Make the child process add two integers by replacing its image with the “myadder” image using execvp system call.

 

 

6

Create a new process using a fork system call. The child process should print the string “PCCSL407” and the parent process should print the string “Operating Systems Lab”. Use awaitsystem call to ensure that the output displayed is “PCCSL407 Operating Systems Lab

 

 

 

 

 

7

Inter-processCommunication(https://www.linuxdoc.org/LDP/lpg/node7.html)

 

(a) Using Pipe – Evaluate the expression sqrt(b^2-4ac). The first process evaluates b^2. The second process evaluates 4ac and sends it to the first process which evaluates the final expression and displays it.

(b)    UsingMessageQueue-The first process sends a string to the second

process.The second process reverses the received string and sends it back to the first process. The first process compares the original string and the reversed string received from the second one and then prints whether the string is a palindrome or not.

(c)  UsingSharedMemory-The first process sends three strings to the second process. The second process concatenates them to a single string (with white space being inserted between the two individual strings)and sends it back to the first process.The first process prints the concatenated string in the flipped case,that is if the concatenated string is“HelloS4Students”, the final output should be“hELLOs4sTUDENTS

 

 

8

Write a multi threaded program that calculates the mean, median, and standard deviation for a list of integers.This program should receive a series of integers on the commandline and will then create three separate worker threads. The first thread will determine the mean value,the second will determine the median and the third will calculate the standard deviation of the integers.The variables representing the mean, median, and standard deviation values will be stored globally.The worker threads will set these values,and the parent thread will output the values once the workers have exited.

 

9

Input a list of processes,their CPU bursttimes(integral values),arrival times,and priorities.Then simulate FCFS,SRTF,non-preemptive priority (a larger priority number

implies a higher priority),and RR(quantum=3units)scheduling algorithms on the


 

process mix, determining which algorithm results in the minimum average waiting time (over all processes).

10

Use semaphores to solve the readers-writers problem with writers being given priority over readers.

11

Obtain a (deadlock-free) process mix and simulate the banker’s algorithm to determine a safe execution sequence.

12

Obtain a process mix and determine if the system is deadlocked.

13

Implement the deadlock-free semaphore-based solution for the dining philosopher’s problem.

 

 

 

14

Simulate the address translation in the paging scheme as follows: The program receives three command line arguments in the order

        size of the virtual address space(in megabytes)

        page size(in kilobytes)

        a virtual  address(in decimal notation)

The output should be the physical address corresponding to the virtual address in <frame number, offset> format. You may assume that the page table is implemented as an array indexed by page numbers. (NB: If the page table has no index for the page number determined from the virtual address, you may just declare a page table miss!)

 

15

Simulate the FIFO, LRU, and optimal page-replacement algorithms as follows: First, generate a random page-reference string where page numbers range from 0to9.Apply the random page-reference string to each algorithm, and record the number of page faults incurred by each algorithm. Assume that demand paging is used. The length of the reference string and the number of page frames(varying from 1to7)are to be received as command line arguments.

 

 

 

16

Simulate the SSTF, LOOK, and CSCAN disk-scheduling algorithms as follows: Your program will service a disk with 5,000 cylinders numbered 0 to 4,999. The program will generate a random series of 10cylinder requests and service them according to each of the algorithms listed earlier. The program will be passed the initial position of the disk head (as a parameter on the commandline) and will report the total number of head movements required by each algorithm.


Course Assessment Method(CIE: 50 marks, ESE: 50 marks)

 

Continuous Internal Evaluation Marks(CIE):

 

 

 

Attendance

Preparation/Pre-Lab Work experiments,

Viva and Timely completion of Lab Reports/Record

(Continuous Assessment)

 

 

Internal Examination

 

 

Total

5

25

20

50

 

EndSemesterExaminationMarks(ESE):

 

Procedure/

 

Preparatory work/Design/

Algorithm

Conductofexperiment/ Execution of work/ troubleshooting/ Programming

Resultwithvalid inference/

Qualityof Output

 

Viva voce

 

 

Record

 

 

Total

10

15

10

10

5

50



● Submission of Record:Students shall be allowed for the end semester examination only upon submitting the duly certified record.

● Endorsement by External Examiner:The external examiner shall endorse the record

CourseOutcomes(COs)

At the end of the course students should be able to:

 

 

CourseOutcome

Bloom’s Knowledge Level(KL)

CO1

Illustrate the use of various systems calls in Operating Systems.

K3

 

CO2

Implement process creation and inter-process communication in Operating

Systems

 

K3

CO3

Compare the performance of various CPU scheduling algorithms

K4    

CO4

Compare the performance of various page replacement algorithms

K4

CO5

Compare the performance of various disk scheduling algorithms

K4

Note:K1-Remember,K2-Understand,K3-Apply,K4-Analyse,K5-Evaluate,K6-Create


CO-PO Mapping(Mapping of Course Outcomes with Program Outcomes)

 

 

PO1

PO2

PO3

PO4

PO5

PO6

PO7

PO8

PO9

PO10

PO11

PO12

CO1

3

3

3

3

 

 

 

3

 

 

 

3

CO2

3

3

3

3

 

 

 

3

 

 

 

3

CO3

3

3

3

3

 

 

 

3

 

 

 

3

CO4

3

3

3

3

 

 

 

3

 

 

 

3

CO5

3

3

3

3

 

 

 

3

 

 

 

3

1:Slight(Low),2:Moderate(Medium),3:Substantial(High),-:NoCorrelation

 

    

TextBooks

Sl.No

TitleoftheBook

NameoftheAuthor/s

Nameofthe Publisher

Edition andYear

 

1

OperatingSystems:ThreeEasy Pieces

AndreaArpaci- Dusseau,Remzi Arpaci-Dusseau

 

CreateSpace

 

1/e, 2018

2

LinuxKernelDevelopment

RobertLove

Pearson

3/e,2018

 

3

UnixNetworkProgramming- Volume 2: Interprocess Communications

 

RichardStevens

 

PrenticeHall

 

2/e,1999

 

 

Reference Books/Websites

Sl.No

Title of the Book

Name of the Author/s

Name of the Publisher

Edition and Year

1

The Design of the UNIX Operating System

Maurice J.Bach

Prentice Hall of India

1/e, 1994

2

The Little Book of Semaphores

Allen B.Downey

Green Tea Press

1/e,2016


Video Links(NPTEL,SWAYAM…)

Module No.

LinkID

1

https://archive.nptel.ac.in/courses/106/105/106105214/

2

https://www.youtube.com/playlist?list=PLDW872573QAb4bj0URobvQTD41IV6gRkx



Continuous Assessment (25 Marks)

1. Preparation and Pre-Lab Work (7 Marks)

  • Pre-Lab Assignments: Assessment of pre-lab assignments or quizzes that test understanding of the upcoming experiment.

  • Understanding of Theory: Evaluation based on students’ preparation and understanding of the theoretical background related to the experiments.


2. Conduct of Experiments (7 Marks)

  • Procedure and Execution: Adherence to correct procedures, accurate execution of experiments, and following safety protocols.

  • Skill Proficiency: Proficiency in handling equipment, accuracy in observations, and troubleshooting skills during experiments.

  • Teamwork: Collaboration and participation in group experiments.


3. Lab Reports and Record Keeping (6 Marks)

  • Quality of Reports: Clarity, completeness, and accuracy of lab reports. Proper documentation of experiments, data analysis, and conclusions.

  • Timely Submission: Adhering to deadlines for submitting lab reports or rough records and maintaining a well-organized fair record.


4. Viva Voce (5 Marks)

  • Oral Examination: Ability to explain the experiment, results, and underlying principles during the viva voce session.


Final Marks Averaging

The final marks for preparation, conduct of experiments, viva, and record are the average of all the specified experiments in the syllabus.


Evaluation Pattern for End Semester Examination (50 Marks)

1. Procedure / Preliminary Work / Design / Algorithm (10 Marks)

  • Procedure Understanding and Description: Clarity in explaining the procedure and understanding each step involved.

  • Preliminary Work and Planning: Thoroughness in planning and organizing materials/equipment.

  • Algorithm Development: Correctness and efficiency of the algorithm related to the experiment.

  • Creativity and Logic: Innovation and logical flow in algorithm or experimental design.


2. Conduct of Experiment / Execution of Work / Programming (15 Marks)

  • Setup and Execution: Proper setup and accurate execution of the experiment or programming task.


3. Result with Valid Inference / Quality of Output (10 Marks)

  • Accuracy of Results: Precision and correctness of the obtained results.

  • Analysis and Interpretation: Validity of inferences drawn from the experiment or quality of the program output.


4. Viva Voce (10 Marks)

  • Explanation Skills: Ability to explain the experiment, procedure, and results, and to answer related questions.

  • Conceptual Understanding: Proficiency in answering questions related to theoretical and practical aspects of the subject.


5. Record (5 Marks)

  • Completeness and Clarity: Completeness, clarity, and accuracy of the lab record submitted.

Comments

  1. Excellent information about hair transplant treatments. Very helpful article for anyone looking for the best hair transplant clinic in Jaipur. Thanks for sharing!

    ReplyDelete
  2. TheBest maid services in Gurgaon
    provide professional household assistance for families looking to maintain a clean and organized home. Their reliable support helps reduce the stress of managing daily domestic responsibilities.

    Many people choose the Best maid services in Gurgaon because they offer trained and experienced staff for cleaning, cooking, laundry, and other household tasks. These services ensure convenience and efficiency for modern families.

    With the Best maid services in Gurgaon, homeowners can enjoy greater flexibility in their daily routines. Professional maids take care of essential chores, allowing family members to focus on work, studies, and personal activities.

    The Best maid services in Gurgaon are known for offering customized solutions based on individual household needs. Whether you need part-time or full-time assistance, professional services are available to match different requirements.

    Selecting the Best maid services in Gurgaon is a smart investment for maintaining a comfortable and hygienic living environment. Quality domestic support improves overall household management and enhances everyday living.

    ReplyDelete
  3. Choosing quality Part time Maid services in Gurgaon ensures timely and efficient household assistance.

    ReplyDelete
  4. tezass software
    is a technology-driven software development company committed to building intelligent digital solutions that help businesses innovate and grow. Our expertise includes custom software development, web applications, mobile app development, cloud platforms, enterprise solutions, API integration, business automation, and IT consulting. At Tezass Software, we develop secure, scalable, and performance-oriented applications designed to meet the evolving needs of modern organizations. By combining innovation, technical excellence, and a client-focused approach, we deliver solutions that enhance productivity, simplify operations, and support digital transformation. From startups to large enterprises, Tezass Software is dedicated to providing dependable technology services that create measurable value and long-term business success.

    ReplyDelete
  5. This is a highly engaging and informative post.tezass software continues to provide excellent insights into software development, cloud-based solutions, and digital transformation strategies that support business growth. The article is well-structured, easy to understand, and filled with practical information. Thank you for sharing this valuable content, and I look forward to more informative posts from Tezass Software.

    ReplyDelete
  6. Managing a home requires continuous effort, and daily chores can quickly become overwhelming when combined with work and family responsibilities.Part time Maid services in Gurgaon offer a practical solution for households that need reliable domestic help without the commitment of employing a full-time maid. These services are designed to provide convenience, flexibility, and professional assistance tailored to your daily routine.

    Hiring Part time Maid services in Gurgaon allows homeowners to maintain a clean and organized living space without sacrificing valuable personal time. Professional maids are experienced in handling routine household tasks such as sweeping, mopping, dusting, utensil washing, laundry, bathroom cleaning, and kitchen upkeep. Their support ensures that your home remains fresh and hygienic every day.

    One of the key benefits of Part time Maid services in Gurgaon is the ability to choose services based on your individual requirements. Whether you need help for a couple of hours each morning, a few evenings every week, or only on weekends, flexible scheduling options make it easy to find a plan that suits your lifestyle. This personalized approach helps customers receive exactly the level of support they need.

    Professional agencies offering Part time Maid services in Gurgaon focus on delivering dependable and trustworthy domestic help. Every maid is carefully screened, background-verified, and trained before being assigned to a household. This ensures that customers receive reliable professionals who understand the importance of cleanliness, punctuality, and respectful service.

    Apart from standard housekeeping, Part time Maid services in Gurgaon often include additional support such as cooking, ironing, childcare, elderly care, grocery management, and seasonal deep cleaning. These comprehensive services allow families to simplify household management through a single trusted service provider while enjoying greater convenience.

    Affordability is another major reason why many households prefer Part time Maid services in Gurgaon. Customers pay only for the hours worked or the specific tasks requested, making professional domestic assistance accessible without the expense of hiring a full-time employee. This cost-effective model benefits working couples, bachelors, small families, and senior citizens alike.

    Reliable service providers also ensure uninterrupted household assistance by offering replacement maids whenever required. If your regular domestic helper is unavailable, another qualified professional can be arranged promptly to prevent disruptions to your daily routine. Responsive customer support and transparent pricing further strengthen customer confidence.

    Choosing Part time Maid services in Gurgaon is an excellent way to enjoy a cleaner home and a more balanced lifestyle. With experienced domestic helpers, flexible service plans, verified professionals, and affordable pricing, these services make everyday household management simple and stress-free. A trusted part-time maid helps you save time, reduce daily pressure, and create a comfortable home where you can truly relax and spend quality time with your family.

    ReplyDelete
  7. Jaipur, the vibrant capital of Rajasthan, is a city where royal history, cultural heritage, and modern luxury come together to create unforgettable travel experiences. Known for its magnificent forts, majestic palaces, colorful bazaars, and architectural wonders, Jaipur is a favorite destination for both domestic and international travelers. If you're looking for an extraordinary stay, choosing one of the Five star hotels in Jaipur is the perfect way to enjoy comfort, elegance, and exceptional hospitality.

    The best five star hotels in Jaipur are renowned for their luxurious accommodations and world-class services. Guests can unwind in beautifully designed rooms and suites featuring stylish interiors, premium bedding, spacious bathrooms, high-speed internet, and breathtaking views. These luxury properties also offer top-class amenities such as infinity pools, wellness spas, fitness centers, multi-cuisine restaurants, and personalized concierge services to ensure every stay is relaxing and memorable.

    One of the biggest advantages of staying in a luxury hotel is its strategic location. Many five star hotels in Jaipur are situated near the city's most popular attractions, including Amber Fort, City Palace, Hawa Mahal, Jal Mahal, Nahargarh Fort, and the famous shopping districts. This allows travelers to explore Jaipur's rich heritage while enjoying the convenience of returning to a luxurious retreat after a day of sightseeing.

    Dining is another highlight of these premium hotels. Guests can indulge in authentic Rajasthani cuisine, traditional Indian delicacies, and international gourmet dishes prepared by skilled chefs. Elegant restaurants, rooftop dining venues, and cultural evenings featuring folk music and dance provide an immersive experience that reflects the spirit of Rajasthan.

    Luxury hotels in Jaipur are also the preferred choice for destination weddings, corporate events, conferences, and family celebrations. Their spacious banquet halls, beautifully landscaped gardens, advanced event facilities, and experienced planning teams ensure that every event is organized flawlessly. Business travelers can also enjoy executive meeting rooms, business centers, and modern workspaces designed for maximum productivity.

    What makes the five star hotels in Jaipur truly stand out is their dedication to personalized guest experiences. Services such as airport transfers, travel assistance, customized sightseeing packages, and round-the-clock room service ensure complete comfort from check-in to departure.

    Whether you're planning a romantic honeymoon, a relaxing family holiday, or a professional business trip, the five star hotels in Jaipur provide the ideal blend of luxury, convenience, and traditional hospitality. Enjoy elegant accommodations, outstanding service, and unforgettable experiences while discovering the timeless charm of Rajasthan's iconic Pink City.

    ReplyDelete
  8. Jaipur is a city that showcases the grandeur of Rajasthan through its magnificent forts, royal palaces, vibrant culture, and timeless traditions. Every year, thousands of travelers visit the Pink City to experience its rich heritage and modern attractions. If you're looking for comfort, elegance, and exceptional service, choosing one of the Five star hotels in Jaipur is the perfect way to make your trip unforgettable.

    The best five star hotels in Jaipur are known for their luxurious accommodations and premium hospitality. Guests can stay in beautifully designed rooms and spacious suites that feature elegant interiors, plush bedding, high-speed internet, smart room technology, and modern bathrooms. Many luxury hotels also offer wellness spas, temperature-controlled swimming pools, fitness centers, yoga facilities, and beautifully landscaped gardens that create a peaceful environment for relaxation.

    A major advantage of staying at five star hotels in Jaipur is their convenient location. Most luxury properties are close to the city's famous attractions, including Amber Fort, Hawa Mahal, City Palace, Jal Mahal, Nahargarh Fort, and Patrika Gate. This allows visitors to enjoy sightseeing, shopping, and cultural experiences without spending long hours traveling across the city.

    Dining at these luxury hotels is a memorable experience for every guest. From authentic Rajasthani delicacies and traditional Indian cuisine to Mediterranean, Asian, and international dishes, the restaurants cater to every taste. Many hotels also feature rooftop dining, elegant cafés, and evening cultural programs with folk music and dance, offering guests a deeper connection to Rajasthan's heritage.

    The five star hotels in Jaipur are also ideal for destination weddings, business conferences, corporate meetings, and private events. Their sophisticated banquet halls, outdoor venues, state-of-the-art conference rooms, and experienced event management teams ensure every occasion is organized with excellence. Business travelers can also enjoy executive lounges, business centers, and meeting facilities designed for professional convenience.

    What truly makes these luxury hotels stand out is their commitment to personalized hospitality. Guests receive dedicated concierge services, airport transfers, customized travel assistance, and 24-hour room service to ensure a comfortable and stress-free stay. Every detail is carefully managed to deliver an experience that exceeds expectations.

    Whether you are planning a romantic honeymoon, a family holiday, or a business trip, the five star hotels in Jaipur offer the perfect combination of luxury, comfort, and authentic Rajasthani hospitality. Enjoy elegant accommodations, premium amenities, outstanding dining, and unforgettable service while discovering the royal charm of one of India's most celebrated travel destinations.

    ReplyDelete
  9. Jaipur, the magnificent Pink City of India, is famous for its royal heritage, historic monuments, colorful traditions, and warm hospitality. The city offers visitors a perfect blend of ancient culture and modern lifestyle. For travelers who want a premium and comfortable stay,Five star hotels in Jaipur provide exceptional accommodation with luxurious facilities and outstanding services.

    The luxury hotels in Jaipur are designed to deliver a memorable experience with elegant interiors, spacious rooms, royal suites, and personalized guest care. These hotels reflect the beauty of Rajasthan while providing modern comforts that meet international standards. Every element, from architecture to hospitality, creates an atmosphere of elegance and relaxation.

    Five star hotels in Jaipur offer a variety of premium amenities for a comfortable stay. Guests can enjoy luxurious spa services, swimming pools, fitness centers, fine dining restaurants, conference facilities, and beautifully designed leisure areas. These features make luxury hotels an excellent choice for vacations, business trips, and special occasions.

    The unique charm of Jaipur’s luxury hotels comes from their connection with Rajasthan’s royal culture. Many hotels showcase traditional artwork, heritage-inspired designs, and elegant décor that represent the history and beauty of the region. Guests can experience the royal lifestyle while enjoying modern conveniences and world-class services.

    For tourists, staying at a five star hotel provides easy access to Jaipur’s famous attractions, including Amber Fort, City Palace, Hawa Mahal, and Jantar Mantar. After exploring the city’s historical wonders, visitors can relax in a luxurious environment with premium facilities and comfortable surroundings.

    Five star hotels in Jaipur are also popular choices for grand weddings, corporate events, and celebrations. With beautiful venues, professional event management teams, and customized arrangements, these hotels help create unforgettable experiences. Their excellent hospitality ensures that every occasion becomes special.

    The culinary experience at luxury hotels adds more value to the stay. Guests can enjoy authentic Rajasthani dishes, Indian cuisine, and international specialties prepared by skilled chefs. The combination of delicious food, elegant ambiance, and quality service makes dining a memorable experience.

    Choosing five star hotels in Jaipur allows travelers to enjoy luxury, comfort, and cultural richness together. Whether visiting for leisure, business, or celebrations, these hotels provide a perfect combination of royal elegance and modern hospitality. A stay in Jaipur’s luxury hotels is a wonderful way to experience the true spirit of Rajasthan.

    ReplyDelete

Post a Comment

Popular posts from this blog

Operating Systems OS Lab PCCSL407 Semester 4 KTU BTech CS 2024 Scheme - Dr Binu V P

FCFS First Come First Serve - CPU Scheduling

Banker’s Algorithm -Finding safe execution sequence