Skip to content

My assignments during the operating systems course which includes projects in different spheres of OS concepts, namely threads, paging , and file system scheduling.

Notifications You must be signed in to change notification settings

mohamadreza99/operating-systems-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Operating Systems Projects

1. Threading

This projects is an illustration of how threads, locks, and semaphores work. In this example, we have an intersection in which cars want to pass it. Every area of this intersection (NE, NW, SW, SE) has a lock seperately. every car arrives at the intersection, has a source and a destination road, so it is clear which areas of the intersection should be without any other car to permit the very arrived car to pass. Hence, if a car want to pass an area line NE in its way, it must aquire that semaphore.

Screen Shot 1400-07-08 at 11 23 06 AM

I implemented this project using java thread synchoronization and thread locks which they serve as four areas in the intersection that I mentioned above.

2. Paging and Memory Management

In this project, paging system of os is implemented. we have a backstore.bin file that it is as the physical memory. We have a virtual memory for processes running in the os and each virtual address should be translated to the related physical address using page table and TLB. For more details look at this readme file located in the directory of this project.

3. File System Scheduling

This program implements the following disk-scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, Look and C-Look, and also will service a disk with 5000 cylinders numbered 0 to 4999. The program will generate a random series of 1000 cylinder requests and service them according to each of the algorithms listed above. The program will be passed the initial position of the disk head (as a parameter on the command line) and report the total amount of head movement required by each algorithm.

About

My assignments during the operating systems course which includes projects in different spheres of OS concepts, namely threads, paging , and file system scheduling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages