Giter Club home page Giter Club logo

operating-systems's Introduction

Operating Systems Course Projects

Project 1: oneparent_twochild.c

About

This C program demonstrates inter-process communication and pipe handling in a UNIX environment. It creates two child processes from one parent process, using fork() and pipe(). The first child executes the ls command and the second executes the nl command, with the output of ls being piped as input to nl.

Technical Highlights

  • Utilizes fork() for process creation.
  • Implements pipe() for inter-process communication.
  • Employs dup2() for file descriptor duplication.
  • Executes external commands (ls and nl) using execvp().

Project 2: shell.c

About

This custom shell program in C offers various UNIX shell functionalities, including clearing the screen, listing directory contents, and handling directories and files. It showcases the usage of system calls and process management in a shell environment.

Key Features

  • Implements a basic shell interface.
  • Executes commands like clear, mkdir, and chdir.
  • Custom cmd_tree() and cmd_list() functions for directory manipulation and file listing.
  • Utilizes stat() for file information retrieval, replicating ls -l functionality.

Each project encapsulates key concepts of operating systems, demonstrating process management, file handling, and system call usage, essential for understanding the internal workings of an OS.

operating-systems's People

Contributors

fzinnah17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.