Skip to content

Tag Archives: system-programming

Prerequisite – Binary to/from Gray Code Problem – Write an assembly language program in 8085 which convert an 8 bit number into grey number Example… Read More
Problem – Write an assembly language program in 8086 microprocessor to divide a 16 bit number by an 8 bit number. Example – Algorithm –… Read More
What is Meltdown security vulnerability? Meltdown, also known as Rogue Data Cache Load, is a security vulnerability that affects microprocessors of the types Intel x86,… Read More
Problem – Multiply two 8 bit numbers stored at address 2050 and 2051. Result is stored at address 3050 and 3051. Starting address of program… Read More
Problem – Write an assembly language program to add two 8 bit numbers stored at address 2050 and address 2051 in 8085 microprocessor. The starting… Read More
Problem – Determine largest number in an array of n elements. Value of n is stored at address 2050 and array starts from address 2051.… Read More
We sometimes come across abnormal crash of C++ programs. Below are some possible reasons which may cause C++ to crash abnormally. Segmentation Fault: It is… Read More
It is known that fork() system call is used to create a new process which becomes child of the caller process. Upon exit, the child… Read More
What are conditional wait and signal in multi-threading ? Explanation: When you want to sleep a thread, condition variable can be used. In C under… Read More
Given a matrix of N x N, task is to find the determinant of the matrix using multi-threading. Examples : Input : mat = {{0,… Read More
Prerequisite: basics of fork, fork and binary tree, Example1: What is the output of the following code? #include <stdio.h> #include <unistd.h> int main() {     if… Read More
Share a queue among three threads A, B, C as per given norms : Thread A generates random integers and pushes them into a shared… Read More
Heap Overflow: Heap is a region of process’s memory which is used to store dynamic variables. These variables are allocated using malloc() and calloc() functions… Read More
Given a very large array of integers, find maximum within the array using multithreading. Examples: Input : 1, 5, 7, 10, 12, 14, 15, 18,… Read More
Header Files : The files that tell the compiler how to call some functionality (without knowing how the functionality actually works) are called header files.… Read More