Professional Documents
Culture Documents
RT LINUX
OPERATING SYSTEM(OS)
Definition
An operating system (OS) is a computer program
that manages the hardware and software
resources of a computer
PROCESS
Pipes
FIFO
Semaphore
Shared Memory
PIPES
% rm /tmp/fifo (Deletion)
FIFO
FIFO Accessing
Access a FIFO just like an ordinary file
Example:-
int fd = open (fifo_path, O_WRONLY);
write (fd, data, data_length);
close (fd);
/* Thread creation */
pthread_create(&tid_Samp,NULL,thread_function,NULL);
/* Thread Deletion */
pthread_delete_np(tid_Samp);
tid_Samp = NULL;
THREADS
RT Thread Structure
SEMAPHORES
unregister_chrdev(i_major, "DPcPCI7008");
CHARACTER DEVICE