Programs vs. processes

Computer Systems A Programmer‘s Perspective Second Edition

This is a good place to pause and make sure you understand the distinction between a program and a
process. A program is a collection of code and data; programs can exist as object modules on disk or
as segments in an address space. A process is a specific instance of a program in execution; a program
always runs in the context of some process. Understanding this distinction is important if you want to
understand the fork and execve functions. The fork function runs the same program in a new child
process that is a duplicate of the parent. The execve function loads and runs a new program in the

context of the current process. While it overwrites the address space of the current process, it does not
create a new process. The new program still has the same PID, and it inherits all of the file descriptors
that were open at the time of the call to the execve function.

时间: 2024-10-01 04:56:24

Programs vs. processes的相关文章

Unix System Overview

Unix System Overview Introduction All operating systems provide services for programs they run. Typicalservices include executinga new program, opening a file, reading a file, allocatinga region of memory, getting the current time of day, and so on.

Tagging Physical Resources in a Cloud Computing Environment

A cloud system may create physical resource tags to store relationships between cloud computing offerings, such as computing service offerings, storage offerings, and network offerings, and the specific physical resources in the cloud computing envir

我你就报报我好

http://www.tudou.com/programs/view/gws5_W9LBOY/e0878.htmlhttp://www.tudou.com/programs/view/svb2E3asrwo/j8744.htmlhttp://www.tudou.com/programs/view/iZs6vuetaJM/d542n.htmlhttp://www.tudou.com/programs/view/l2tsMkkhuzU/5FSAS.htmlhttp://www.tudou.com/p

爱情是个奇迹

http://www.tudou.com/programs/view/0GBAt_FO_Hg/7kudM.htmlhttp://www.tudou.com/programs/view/cLzaXAGz-e4/Mudxd.htmlhttp://www.tudou.com/programs/view/JKZug-f69Z8/0unpZ.htmlhttp://www.tudou.com/programs/view/UcUo3ecyz0Y/Z4976.htmlhttp://www.tudou.com/p

Greenlets, threads, and processes

Greenlets, threads, and processes [转载] It's very common in a program to want to do two things at once: repaginate a document while still responding to user input, or handle requests from two (or 10000) web browsers at the same time. In fact, pretty m

ULK --- Chap3 Processes

The concept of a process is fundamental to any multiprogramming operating system. A process is usually defined as an instance of a program in execution; thus, if 16 users are running vi at once, there are 16 separate processes (although they can shar

Linux - Managing Packages and Processes

Part 1: Package Management Package management is a system by which software can be installed, updated, queried or removed from a filesystem. In Linux, there are many different software package management systems, but the two most popular are those fr

1301 - Monitoring Processes

   PDF (English) Statistics Forum Time Limit: 3 second(s) Memory Limit: 32 MB We have planned to design a new operating system. Like other OS we will use the techniques of processes, schedulers, locks etc. The basic plan is to use the OS in hardwires

Processes vs Threads

A process is an executing instance of an application. What does that mean? Well, for example, when you double-click the Microsoft Word icon, you start a process that runs Word. A thread is a path of execution within a process. Also, a process can con