To execute a correct program on data sets, first ensure that the program is properly implemented and tested to handle the expected input. Next, run the program with the specified data sets while collecting metrics on time and space usage. Time complexity can be measured using built-in timing functions or profiling tools, while space complexity can be assessed by monitoring memory usage during execution. Finally, analyze the results to evaluate performance and optimize the program if necessary.
Profiling
Profiling is the process of executing a correct program on different data sets to measure the time and space that is takes to compute the results.
Process is the program in the running state and program is a set of code un-executed, saved in a file. 1 program can produce 1 or many processes
A process is an executing (i.e., running) instance of a program. Processes are also frequently referred to as tasks.
Executing the program.
killall -10 apache2
Yes.
A program is an executable. A process is an executable that has been loaded into working memory and is currently executing the program. A thread is a thread of execution within a process. Every process has at least one thread, but threads can spawn additional threads as required to allow concurrent operations to be performed near-simultaneously.
The operating system acts as an interface between an application and the hardware. The user interacts with the hardware from "the other side". The operating system is a set of services which simplifies development of applications. Executing a program involves the creation of a process by the operating system. The kernel creates a process by assigning memory and other resources, establishing a priority for the process (in multi-tasking systems), loading program code into memory, and executing the program. The program then interacts with the user and/or other devices performing its intended function.
The operating system acts as an interface between an application and the hardware. The user interacts with the hardware from "the other side". The operating system is a set of services which simplifies development of applications. Executing a program involves the creation of a process by the operating system. The kernel creates a process by assigning memory and other resources, establishing a priority for the process (in multi-tasking systems), loading program code into memory, and executing the program. The program then interacts with the user and/or other devices performing its intended function.
Hand Tracing Page 63 Programming Logic and Design by Tony Gladdis
The operating system acts as an interface between an application and the hardware. The user interacts with the hardware from "the other side". The operating system is a set of services which simplifies development of applications. Executing a program involves the creation of a process by the operating system. The kernel creates a process by assigning memory and other resources, establishing a priority for the process (in multi-tasking systems), loading program code into memory, and executing the program. The program then interacts with the user and/or other devices performing its intended function. References: http://www.megatypers.in/?p=152