C program to merge two arrays.

Arrays in C. Write a C program to merge two arrays.In this program we check the elements of arrays A, B and put that elements in the resulted array C in sorted manner.Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can use …

C Program to search the linked list.

Data structures using C, Write c program to search the linked list.Linked list is a data structure in which the objects are arranged in a linear order. In this program, we sort the list elements in ascending order. Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K …

C program to implement SJF algorithm.

Write a C program to implement SJF algorithm.Shortest Job First(SJF) is the CPU scheduling algorithm. In SJF, if the CPU is available it allocates the process which has smallest burst time, if the two process are same burst time it uses FCFS algorithm.Read more about C Programming Language . and read the C Programming Language …

C Program to implement FCFS algorithm.

Write a C Program to implement FCFS algorithm.First Come First Served(FCFS) algorithm is the CPU scheduling algorithm. In FCFS process is served when they are arrived in order, i.e First In First Out(FIFO). FCFS is the simple scheduling algorithm, but it takes typically long/varying waiting time.Read more about C Programming Language . and read the …

C Program to lock file using semaphores.

Write a C Program to lock file using semaphores.Using semaphores, We can control access to files, shared memory and other things. The basic functionality of a semaphore is that you can either set it, check it, or wait until it clears then set it (“test-n-set”). In C semaphores functions defined in the sys/sem library. Read …

C program to Encrypt and Decrypt a password

C Strings:Write a C program to Encryption and Decryption of password.In this program we encrypt the given string by subtracting the hex value from it. Password encryption is required for the security reason, You can use so many functions like hash or other keys to encrypt. Read more about C Programming Language . and read …

C Program to solve the producer consumer problem

Write a C Program to solve the producer consumer problem with two processes using semaphores.Producer-consumer problem is the standard example of multiple process synchronization problem. The problem occurs when concurrently producer and consumer tries to fill the data and pick the data when it is full or empty. producer consumer problem is also known as …

C program to implement Round Robin CPU scheduling algorithm.

Write a C program to implement Round Robin CPU scheduling algorithm.In Round Robin scheduling algorithm, a small time slice or quantum is defined, all the tasks are kept in queue. The CPU scheduler picks the first task from the queue ,sets a timer to interrupt after one quantum, and dispatches the process. If the process …

C Program to check whether two strings are anagrams of each other.

C Strings: Write a c program to check whether two strings are anagrams of each other. Two strings are said to be anagrams, if the characters in the strings are same in terms of numbers and value ,only arrangement or order of characters are may be different. Example: “dfghjkl” and “lkjghdf” are anagrams of each …

C Program to delete vowels in a string.

C Strings:Write a C Program to delete a vowel in a given string.In this program, We use the pointers to position the characters.check_vowel() function checks the character is vowel or not, if the character is vowel it returns true else false.Example output:Given string: Check vowelOutput is: Chck vwlRead more about C Programming Language . and …