Giter Site home page Giter Site logo

6th-sem-usp-lab's Introduction

List of Experiments for USP: Design, develop, and execute thefollowing programs

1. Write a C/C++ POSIX compliant program to check the followinglimits:
(i) No. of clock ticks (ii) Max.no. of child processes
(iii) Max. path length
(iv) Max. no. of characters in a file name
(v) Max. no.of open files/ process

2. Write a C/C++ POSIX compliant program that prints the POSIXdefined configuration options supported on any given system usingfeature test macros.

3. Consider the last 100 bytes as a region. Write a C/C++ program tocheck whether the region is locked or not. If the region is locked,print pid of the process which has locked. If the region is not locked,lock the region with an exclusive lock, read the last 50 bytes andunlock the region.

4. Write a C/C++ program which demonstrates interprocesscommunication between a reader process and a writer process. Usemkfifo, open, read, write and close APIs in your program.

5. a) Write a C/C++ program that outputs the contents of itsEnvironment list
5.  b) Write a C / C++ program to emulate the unix ln command

6. Write a C/C++ program to illustrate the race condition.

7. Write a C/C++ program that creates a zombie and then calls systemto execute the pscommand to verify that the process is zombie.

8. Write a C/C++ program to avoid zombie process by forking twice.

9. Write a C/C++ program to implement the system function.

10. Write a C/C++ program to set up a real-time clock interval timerusing the alarm API

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.