Semaphores in Minix

Programmation of semaphores in Minix for embedded system.

Implementation in Minix 3.1.2 of semaphore's algorithm.

This module should be implemented in the kernel and called with:

int sem_init(int sem_id, int value);

int sem_down(int sem_id);

int sem_up(int sem_id);

int sem_status(int sem_id, int* value, int* num_block);

The maximum number of semaphores must be 10, the sem_id repersent a number from 0 to 9

There are some ERRNO's Minix configurations in the case of error.

The three first functions are normal functions in the semaphore algorithm, the last should done the value of semaphores and the process blocked on it.

The language used is ANSI C. The code should be easy to maintain and simple.

Kemahiran: Pengaturcaraan C

Lihat lebih lanjut: semaphores minix, minix semaphores, minix semaphore, semaphore minix, minix semaphores code, minix kernel semaphores, semaphore ansi, semaphore algorithm language, semaphore algorithm, minix int sem_up, sem_up minix, minix semaphore implementation, semaphore implementation minix, semaphores implementation minix, algorithm functions, implementation semaphores ansi, minix semaphore int sem_init, sem_up sem_down minix, implementation semaphore minix, minix semaphore implement, implementation minix semaphore, ansi c, programmation C++, kernel, int

Tentang Majikan:
( 0 ulasan ) Zürich, Switzerland

ID Projek: #64434