AnuragSahu / OSAssignments

Here I have tried to mock a shell with various system Calls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSAssignments

Assignment 1

The codes of all the Assignments I wrote for Operating Systems Course During 3rd Semester of my undergrad at IIIT Hyderabad. Tasks in Assignment 1 :-.

  1. Create a C program to read a file and create another file which has the reverse order of input file and inverted cases inside a folder named Assignment access able only by user not group or others.
  2. Do use only system calls for reading and writing to the file and terminal.
  3. Create a Symlink to the Directory Assignment.
  4. Check the permissions of the reversed file and Assignment Directory.

Assignment 2

This is a Shell made in C in Operating Systems Assignment2,
I have named this shell WonderShell (coughs Not related to wonder women) pls dont fork it Untill I do my assignemnt complete or I will be penalized

Describtion of Task2

  1. Implement a shell which supports semi-colon separated list of commands.
  2. shell support of the ‘&’ operator which lets a program to run in the background after printing the process id of the newly created process.
  3. The directory from which the shell is invoked will be the home directory of the shell and should be indicated by “~". If the user executes "cd" i.e change dir, then the corresponding change must be reflected in the shell as well.
  4. Builtin commands are contained within the shell itself.implement cd, pwd, clear, ls and echo.
  5. Shell execute system commands either in the background or in the foreground.
  6. pinfo : prints the process related info of shell program.
  7. If the background process exits then the shell displays the appropriate message to the user.
  8. reminder command ‘remindme’ which reminds you with a custom message after the given number of seconds elapse.
  9. A ‘clock’ command which displays dynamic date and time in your shell.

Assignment 3

This is not an shell Exercise, Rather it's an Assignment on Shell Synchronisation.Here are three Questions.

  • The Badmintion Court Problem,
    There are some rules that the threads needs to follow in order to have th eporper understanding of threads. Here each person is a thread and then there are rules governing the execution of the porgram.
  • The EVM problem.
  • Merge Sort using Threads.

About

Here I have tried to mock a shell with various system Calls.


Languages

Language:Assembly 52.1%Language:C 46.0%Language:Ruby 0.5%Language:Makefile 0.5%Language:Python 0.4%Language:C++ 0.2%Language:Perl 0.2%