Input #include<iostream> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include...
Practicals
Syllabus with topics linked
Perform Stack operations using Linked List implementation
Input #include <iostream> using namespace std; template <typename T> class Node { public: T info; Node<T>* next; Node() { next=0;...
Write a program to implement FCFS scheduling algorithm
Input #include<iostream> using namespace std; struct Process{ public: int pid; int arrival_T; int burst_Time; int response_Time; int...
Perform Stack operations using Array implementation. Use Templates
Input #include<iostream> using namespace std; template <class X_Type> class LinkedList_using_Array { X_Type arr[100]; int n ,...
Write a program to implement Round Robin scheduling algorithm
Input #include<iostream> #include<conio.h> #include<iomanip> using namespace std; struct Process{ int pid; int burst_time; int...
Write a program to implement SJF scheduling algorithm
Input #include<iostream> #include<algorithm> #include<bits/stdc++.h> using namespace std; struct Process { int...
Perform Queues operations using Circular Array implementation. Use Templates
Input #include<iostream> using namespace std; const int size=5; int flag=0; template<class t> class CQ { static const int...
Write a program to implement non-preemptive priority based scheduling algorithm
Input #include<iostream> #include<iomanip> #include<conio.h> using namespace std; struct Process { int pid; int burst_time; int...
Create and perform different operations on Double-ended Queues using Linked List implementation
Input #include <iostream> using namespace std; template <class T> class node { public: T info; node *next; node(T a,node *p=0)...
Write a program to implement preemptive priority based scheduling algorithm
Input #include<iostream> #include<iomanip> #include<conio.h> using namespace std; struct Process { int pid; int burst_time; int...
Write a program to scan a polynomial using linked list and add two polynomial
Input #include<iostream> using namespace std; class node { public: int power; int coeff; node *next; }; class poly { node *first; int...
Write a program to implement SRJF scheduling algorithm
Input #include<iostream> #include<iomanip> using namespace std; struct Process { int pid; int burst_time; int waiting_time; int...
Write a program to calculate factorial and to compute the factors of a given no. (i) using recursion, (i) using iteration
Input #include<iostream> using namespace std; int i = 1; int factorial(int n); void factor(int n, int i); int iter_factorial(int n);...
Write a program to calculate sum of n numbers using thread library
Input #include<pthread.h> #include<stdio.h> #include<thread> #include<iostream> #include<cstdlib> using namespace std; void...
Write a program to display fibonacci series (i)using recursion, (ii) using iteration
Input #include <iostream> using namespace std; int Fibonacci(const int& n) { if (n <= 1) return 0; else if (n == 2 || n == 3)...