Professional Documents
Culture Documents
MODIFICATION
Submitted By Submitted
To:
Mausam Kumar Shah (077BEI023) Department of
Rohan Bade (077BEI036)
Electronics and
Rajesh Subedi (077BEI032) Computer
Engineering
1.ABSTRACT:
Pint OS, a minimalist and pedagogical operating system, exemplifies the
foundational principles of computer science and operating system design. This case
study offers a comprehensive exploration of Pint OS, from its inception to its
unique architecture and its educational significance. By dissecting its core
components, system structure, and its role in computer science education, this
study illuminates the valuable insights that Pint OS imparts to aspiring software
engineers and operating system enthusiasts. Furthermore, it highlights how Pint OS
serves as a learning tool, demystifying complex concepts and fostering a deeper
understanding of low-level computing. Pint OS stands as a testament to the power
of simplicity in education and its enduring impact on the world of operating
systems and computer science pedagogy.
2.INTRODUCTION:
PintOS is an educational operating system framework developed at Stanford
University, primarily for instructional purposes. Unlike production-grade operating
systems, PintOS is tailored to serve as a practical learning tool for students,
allowing them to delve into the intricacies of operating system design and
implementation in a controlled and educational environment.PintOS comprises
various essential operating system components, including a kernel, file system,
virtual memory system, and support for user programs. What distinguishes PintOS
is its modularity, as students are encouraged to actively engage in implementing
and extending these components. This hands-on approach fosters a deep
comprehension of how these elements collaborate to create a functioning operating
system.PintOS is predominantly implemented in the C programming language.
This choice of language ensures accessibility, as C is a widely taught and
foundational language in computer science. By using C, PintOS facilitates a focus
on operating system concepts without the distraction of complex language
intricacies or platform-specific details.
Despite its simplified nature, PintOS equips students with skills and knowledge
that are directly transferable to real-world operating systems like Linux, Windows,
and macOS. Understanding the inner workings of PintOS serves as a valuable
foundation.
Fig: pintOS architecture
3.KERNAL OVERVIEW:
The kernel of the Pint OS operating system serves as its central nervous system,
orchestrating the essential functions required to manage computer resources and
execute tasks. Here's a closer look at the Pint OS kernel and what it does:
e.
3.2.9. Page Replacement:
In systems with virtual memory, OS employs page replacement algorithms to
decide which pages to swap between physical memory and disk like LRU,
LFU,FIFO, optimal page replacement. Commonly used algorithms include Least
Recently Used (LRU) and First-In-First-Out (FIFO).
3.4.6. Fork:
If our program wants to create a new process that's a copy of itself, we can use
fork(). This new process can then run independently.
3.4.7. Exec:
If our program wants to replace its code and memory with a different program, we
can use exec("new_program"). This effectively starts running "new_program".
3.4.8. Wait:
If our program creates child processes and wants to wait for them to finish before
continuing, we can use wait() to do so.