Skip to main content

Posts

How to run a C/C++ program in Linux mint/ubantu/other

Run A C/C++ program in mint / ubantu / other linux Hello friends, here we are going to run a c program file in linux mint. Here is some step which return below the video , You can simply watch the video or follow the step .... VIDEO Steps for Run C program file in terminal first open software manager/ store and download the " G++ " or you can also " apt get" for install g++. Open any editor and make a c/c++ file and save it on any location. Now open terminal and go to your file location (lets say it "Desktop" then go to Desktop by  cd Desktop command). Now Type g++ filename.c -o outputfilename then press enter. (filename = your file name  and  outputfilename = what output name you want)
Recent posts

Program to convert Birth Date or Any Date into a Name.or Find Day or Month name of Any Date.

WAP to find Any Day or Month Name of Any Date About Program: This program helps you to find the Day and Month of any Date / Any Year. Here i'm using Simple Algorithm to find the Exact Day And Month name of Date. Things which I have to Remember Before Creating a program: Check the Year is Leap or Normal Year Days of the Month some month have 30 and some have 31  Also include the Feb month condition for both 28 and 29 days last is creating a user Friendly Input Here one thing to notice that i'm used a software for that program is Dev C++ . Below you get Direct Downloading Link of Dev C++ Downloads Button  Download Dev C++ Download Source Code #Note : when you click on Downloading link You get An ad, Don't worry just skip it from upper right Corner Button (Button show after 5 sec). It just for help us, we make more and more easy and understandable content for you regularly. Or watch Video How you download the Source code

Install mac OS X Sierra 10 1 in Virtual Box Step by Step with full Detail [HD] || dot clu

Install mac OS X Sierra 10 1 in Virtual Box Step by Step with full Detail [HD] || dot clu About Mac OS: Mac OS is a graphical design Operating System . Which is generally used in apple computer or laptop. Apple changed the original name "Mac OS X" to "OS X" in 2012 and then to "macOS" in 2016, adopting the nomenclature that it uses for their other operating systems, iOS, watchOS, and tvOS. The latest version of macOS is macOS High Sierra, which was publicly released in September 2017. 1. Downloading link of Mac OS :    http://corneey.com/wit9t4 2. Download Virtual Box: http://festyy.com/wdScnb Note: Wait for 5 second and skip the ad (top right corner ): I hope You like Our video Stay connected with dot clu for more and more technical and educational and informational video.. So don't waste time watch video till the end   I Hope you like Our Video..dotclu dot clu =====Also Watch Our other Video======== Round Robin

Program for Worst Fit algorithm in Memory Management || dot clu

Program for Worst Fit algorithm in Memory Management Worst Fit allocates a process to the partition which is largest sufficient among the freely available partitions available in the main memory. If a large process comes at a later stage, then memory will not have space to accommodate it. Suggestion: 1. First Fit 2. Best Fit 3. Worst Fit Example: Input : blockSize[] = {100, 500, 200, 300, 600}; processSize[] = {212, 417, 112, 426}; Output: Process No. Process Size Block no. 1 212 5 2 417 2 3 112 5 4 426 Not Allocated Implementation: 1- Input memory blocks and processes with sizes. 2- Initialize all memory blocks as free. 3- Start by picking each process and find the minimum block size that can be assigned to current process i.e., find min(bockSize[1], blockSize[2],.....blockSize[n]) > processSize[current], if found then assign it to the current process. 5- If not then leave that process and keep checking the fu

Program and Algorithm of Best Fit in C++ || dot clu

Program  and Algorithm of Best Fit in C++ || dot clu Best Fit Algorithm in C and C++ Memory Management is one of the services provided by OS which is needed for Optimized memory usage of the available memory in a Computer System. Suggestion: 1. First Fit 2.  Best Fit 3.  Worst Fit What is Best Fit Memory Management Scheme? Best fit uses the best memory block based on the Process memory request. In best fit implementation the algorithm first selects the smallest block which can adequately fulfill the memory request by the respective process. Because of this memory is utilized optimally but as it compares the blocks with the requested memory size it increases the time requirement and hence slower than other methods. It suffers from Internal Fragmentation which simply means that the memory block size is greater than the memory requested by the process, then the free space gets wasted. Once we encounter a process that requests a memory which is higher than bloc

First Fit Program and Algorithm in C++ || dot clu

First Fit Program and Algorithm in C++ || dot clu First Fit Algorithm in C and C++ Here you will learn about first fit algorithm in C and C++ with program examples. There are various memory management schemes in operating system like first fit, best fit and worst fit. In this section we will talk about first fit scheme. Suggestion: 1. First Fit 2.  Best Fit 3.  Worst Fit What is First Fit Memory Management Scheme? In this scheme we check the blocks in a sequential manner which means we pick the first process then compare it’s size with first block size if it is less than size of block it is allocated otherwise we move to second block and so on. First Fit Algorithm Get no. of Processes and no. of blocks. After that get the size of each block and process requests. Now allocate processes if(block size >= process size) //allocate the process else //move on to next block Display the processes with the blocks that are allocated to a respective process.

Round Robin Scheduling Program in C++ || dot clu

Round Robin Scheduling Program in C++ Process scheduling is an important component for process management. In a multi-user and a time-sharing system, response time is one of the most important objective to be accomplished. Round Robin Scheduling Algorithm 1. The queue structure in ready queue is of First In First Out (FIFO) type. 2. A fixed time is allotted to every process that arrives in the queue. This fixed time is known as time slice or time quantum. 3. The first process that arrives is selected and sent to the processor for execution. If it is not able to  complete its execution within the time quantum provided, then an interrupt is generated using an automated timer. 4. The process is then stopped and is sent back at the end of the queue. However, the state is saved and context is thereby stored in memory. This helps the process to resume from the point where it was interrupted. 5. The scheduler selects another process from the ready queue and dispatches it