C library function - strncpy()
Pada artikel ini dibahas mengenai bagaimana kegunaan dari fungsi strncpy() pada bahasa pemrograman C dan dijelaskan juga parameter yang diperlukan. dan tentunya disertai contoh yang akan menambah pemahaman kita.
Operating System: Threads and Concurrency
Sebuah Thread juga disebut proses ringan, adalah penggunaan CPU dasar; itu mengkompromikan ID utas, penghitung program, satu set register, dan tumpukan. Utas adalah entitas dalam proses yang dapat dijadwalkan untuk dieksekusi.
Process States
The process, from its creation to completion, passes through various states. The minimum number of states is five.
The names of the states are not standardized although the process may be in one of the following states during execution.
Operations on the Process :
——Creation
Once the process is created, it will be ready and come into the ready queue (main memory) and will be ready for the execution.
——Scheduling
Out of the many processes present in the ready queue, the Operating system chooses one process and start executing it. Selecting the process which is to be executed next, is known as scheduling.
——Execution
Once the process is scheduled for the execution, the processor starts executing it. Process may come to the blocked or wait state during the execution then in that case the processor starts executing the other processes.
——Deletion/killing
Once the purpose of the process gets over then the OS will kill the process. The Context of the process (PCB) will be deleted and the process gets terminated by the Operating system.
Inter-process communication in Linux: Shared storage
Ini artikel menjelaskan tentang interprocess communication (IPC) in Linux.
Seri ini menggunakan contoh kode di C untuk memperjelas mekanisme IPC berikut:
-Shared files
-Shared memory (with semaphores)
-Pipes (named and unnamed)
-Message queues
-Sockets
-Signals
This article reviews some core concepts before moving on to the first two of these mechanisms: shared files and shared memory.
Jenis Thread dan Model Multithreading
Terdapat dua jenis thread, yaitu: Single thread dan multi thread.
—Single thread merupakan process hanya mengeksekusi satu thread saja pada satu waktu
—Multi thread merupakan process dapat mengeksekusi sejumlah thread dalam satu waktu
Pada artikel ini menjelaskan masing - masing thread ini lebih detail
What is a Makefile and how does it work?
Pada artike ini membantu saya cara makefile di linux dengan step by step. Ini juga memberi saya ilmu baru yang belum pernah diajarkan saat KBM.
fork() in C
Fork system call is used for creating a new process, which is called child process, which runs concurrently with the process that makes the fork() call (parent process). After a new child process is created, both processes will execute the next instruction following the fork() system call. A child process uses the same pc(program counter), same CPU registers, same open files which use in the parent process.
execlp(3) — Linux manual page
The exec() family of functions replaces the current process image with a new process image. The functions described in this manual page are layered on top of execve(2). (See the manual page for execve(2) for further details about the replacement of the current process image.)
Intro to C Programming - File I/O
Pada video ini dijelaskan mengenai konsep dasar dalam membuat file pada bahasa pemrograman C untuk input dan output file secara sequential.
User Level and Kernel Level Threads
Pada video ini membahas mengenai perbedaan antara User threads dengan Kernel threads pada perating system. dilengkapi juga dengan animasi yang memudahkan pemahaman kita.