System Design C Linux Problems
💡 Design an event handling system which can handle 20 events; there are 10 modules in the system which would like to listen to these events. Each module must register a callback function pointer...
💡 Design an event handling system which can handle 20 events; there are 10 modules in the system which would like to listen to these events. Each module must register a callback function pointer...
The 4-way handshake is a key process in the establishment of a secure connection between a client device and a Wi-Fi access point. It’s primarily used in WPA2-PSK (Wi-Fi Protected Access 2 with Pre...
C interview cheatsheet of important questions. Make sure to revise the list daily. Important C macros Basic macros #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? ...
Reversing a Linked List in C This guide demonstrates two recursive methods to reverse a linked list in C Linked List Structure First, let’s define the structure of a linked list node. #include ...
Flower Bouquets Lara owns a flower shop where she sells only two types of flower bouquets: Type 1: The first type of bouquet contains three roses and costs p dollars. Type 2: The second type...
💡 Design an event handling system which can handle 20 events; there are 10 modules in the system which would like to listen to these events. Each module must register a callback function pointer...
Prepare a fresh Ubuntu 22.04 VM and follow the below commands to install openstack Script to install a basic Openstack instance. #!/bin/bash # Update package list sudo apt update # Install git ...
Pipes In Unix-like operating systems, file descriptors (FD) are integer values that refer to open files or I/O streams. Each process has its own set of file descriptors that point to files, socket...
#include <stdio.h> typedef int (*OperationFunc)(char); OperationFunc additionFunction(int x) // Function that returns a function pointer int (*additionFunction(int x))(char) { int...
Modern system motherboards will have an interrupt controller chip of some sort, which is often called the [IO][A]PIC, short for IO-[Advanced] Programmable Interrupt Controller, on x86 or a generic ...