Posts

Showing posts from April, 2021

Storage Class in C

 Refernace link :-  https://www.guru99.com/c-storage-classes.html

Link of CPP list

 preprocessor :- https://www.tutorialspoint.com/cprogramming/c_preprocessors.htm IPC :- // A complete working C++ program to demonstrate // all insertion methods on Linked List #include <bits/stdc++.h> using namespace std; // A linked list node class Node { public: int data; Node *next; };             // inserts void push(Node** head_ref, int new_data) { Node* new_node = new Node();            /* 1. allocate node */   new_node->data = new_data;            /* 2. put in the data */ new_node->next = (*head_ref);         /* 3. Make next of new node as head */ (*head_ref) = new_node;               /* 4. move the head to point to the new node */ } void insertAfter(Node* prev_node, int new_data)       ///* Given a node prev_node,   insert a new node after the given prev_node...

DataBase

LINK LIST

 

Mutitreading Notes

 https://www.bogotobogo.com/cplusplus/C11/1_C11_creating_thread.php Processes are independent while thread is within a process.   Processes have separate address spaces while threads share their address spaces. Processes communicate each other through inter-process communication. Processes carry considerable state (e.g., ready, running, waiting, or stopped) information, whereas multiple threads within a process share state as well as memory and other resources. Context switching  between threads in the same process is typically faster than context switching between processes. Multithreading  has some advantages over  multiple processes . Threads require less overhead to manage than processes, and intraprocess thread communication is less expensive than interprocess communication. Multiple process  concurrent programs do have one advantage: Each process can execute on a different machine ( distribute program ). Examples of distributed programs are file serve...