OS Lab 05

Pasted Oct 13, 2026, 3:49 AM3 files68 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/os-lab-04
oel.c
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int main() {
    // getpid() returns the process ID of the current process
    printf("\nProcess ID is: %d\n", getpid());
    return 0;
}

1,592 chars · codepastes.com