Abdullah Baghuth's repositories
Sequential-allocation
a C program to simulate Sequential file allocation strategy.
A-race-condition
A race condition occurs when two or more threads can access shared data and they try to change it at the same time.
BFS
C program to implement Breadth First Search(BFS). Breadth First Search is an algorithm used to search a Tree or Graph. BFS search starts from root node then traverses into next level of graph or tree, if item found it stops other wise it continues with other nodes in the same level before moving on to the next level. The algorithm can also be used for just Tree/Graph traversal, without actually searching for a value. This is what being done in the program below. The disadvantage of BFS is it requires more memory compare to Depth First Search(DFS).
copy-content-of-file-to-anothe
this code will copy the content of file to another file
count-No.-of-pi-ni-pf-nf
A program to count no of positive integers negative integers positive fraction and negative fraction.
count-number-of-words-characters-spaces-and-lines-using-lex
count number of words characters spaces and lines using for a given file using lex.
Cryptography
Cryptography Algorithms
Enviroment-list
A program to show the environment list using c
FCFS-scheduling-algorithm
In this algorithm the processes which arrive first is given the CPU after finishing its request only it will allow CPU to execute other process.
File-Copy-using-command-line-arguments
C program for File Copy using command line arguments
First-level-directory
a C program to simulate the Single level directory
Ghostcat-CNVD-2020-10487
Ghostcat read file/code execute,CNVD-2020-10487(CVE-2020-1938)
Handling-Options-Exception-in-cpp
Catching All Exceptions In some circumstances you will want an exception handler to catch all exceptions instead of just a certain type. This is easy to accomplish.
Hello-World-in-lex
program to print hello world in lex
Limits-on-the-system
program to check the limits on the system using C
number-of-comment-line-
A lex program to print number of multiple comment line or single comment line in given file
number-of-printf-and-scanf-statements
A program to count number of printf and scanf statements
POSIX-defined-configration-option
POSIX-defined-configration-option using feature test macro
process-communication-using-FIFO
C Program to demonstrate the inter process communication using FIFO.
Producer-consumer-problem-semaphore-
a C program to implement the Producer & consumer problem (semaphore)
Rename-file-using-vm-command
This program is used to rename the file using vm command and link(), unlink() in the code
Simple-Or-Compound-lex
A lex program to check wither the given string is simple or compound
Simulate-Indexed-file-allocation-strategy
a C program to simulate Indexed file allocation strategy.
Simulate-Round-Robin-CPU-scheduling-algorithm
In Round Robin Scheduling, CPU is assigned to the process on the basis of FCFS for a fixed amount of time. This fixed amount of time is called as time quantum or time slice. After the time quantum expires, the running process is preempted and sent to the ready queue. Then, the processor is assigned to the next arrived process. It is always preemptive in nature.