Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
LINUX系統程式設計 第二版
by
Robert Love
December 2013
Intermediate to advanced
496 pages
8h 57m
Chinese
GoTop Information, Inc.
Content preview from
LINUX系統程式設計 第二版
行程管理
|
155
ENFILE
所開啟的檔案已到達全系統的上限。
ENOENT
path
或
file
的目標檔案不存在,或是所需要的共享程式庫不存在。
ENOEXEC
path
或
file
的目標檔案是一個無效的二元檔,或是用於不同的機器架構。
ENOMEM
核心記憶體不足以執行一個新的程式。
ENOTDIR
path
中有一個非最終組成元件(
nonfinal component
)不是目錄。
EPERM
path
或
file
位於「以
nosuid
掛載的」檔案系統上,但用戶不是
root
,而且
path
或
file
有設定
suid
或
sgid
位元。
ETXTBSY
path
或
file
的目標檔案被另一個行程開啟以備寫入。
fork()
系統呼叫
一個行程可以透過
fork()
系統呼叫,建立一個新的行程來運行相同的映像:
#include <sys/types.h>
#include <unistd.h>
pid_t fork (void);
一個成功的
fork()
調用會建立一個新行程,此行程的各方面與進行調用的行程幾乎一
致。這兩個行程會繼續運行,而且
fork()
會返回,好像什麼事都沒發生一樣。
新的行程稱為原行程的子行程(
child
),而原行程則稱為父行程(
parent
)。子行程中,
一個成功的
fork()
調用會傳回
0
。父行程中,
fork()
會傳回子行程的
pid
。子行程的各
方面和父行程幾乎一致,除了:
•
子行程的
pid
與父行程不同。
•
子行程的
parent pid
會被設定成其父行程的
pid
。
156
|
第五章
•
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
優雅的SciPy|Python科學研究的美學
Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
成為卓越程式設計師的38項必修法則
Pete Goodliffe
深入理解運算原理|從簡單的機器到無所不能的程式
Tom Stuart
C++语言导学(原书第2版)
本贾尼 斯特劳斯特鲁普
Publisher Resources
ISBN: 9789862769812