Skip to content

NIT-Hamirpur-CSE-Labs/Advanced_OS_lab

Repository files navigation

Advanced_OS_Lab

Advanced OS Lab - 7th semester

Lab 1 -

  1. Study about socket programming.
  2. Study about OS and kernels.

Lab 2 -

  1. Write a program to implement a distributed chat server using TCP socket.
  2. Write a program to implement client server RPC and client server based program using RMI.
  3. Write a multi threaded client server program.
  • Compiling -
    gcc Lab_2_server.c -o server
    gcc Lab_2_client.c -o client

  • Running -
    Run simultaneously in 2 tabs of a same computers (with IP 127.0.0.1) OR of 2 different computers (update IP)
    ./server
    ./client

Lab 3 -

  1. Study about Common Object Request Broker Architecture (CORBA).

Lab 4 -

  1. Write a program to simulate the functioning of lamports logical clock and lamports vector clock.
  2. Write a program to implement Christian's Algorithm and Berkeley Algorithm.
  • Running -
  1. Lamport logical clock -
    gcc lamport_logical_clock.c
    ./a.out < lamport_logical_clock_input

Lab 5 -

  1. Write a program to implement Christian Algorithm.
  2. Write a program to implement Vector Clock.
  • Running -
    g++ program.cpp
    ./a.out