欧美色欧美亚洲另类七区,惠美惠精品网,五月婷婷一区,国产亚洲午夜

課程目錄:Linux Network Programming培訓
4401 人關注
(78637/99817)
課程大綱:

  Linux Network Programming培訓

 

 

 

Sockets
Creating datagram sockets
Receiving and sending data
Creating and accepting TCP connections
Closing sockets
Handling errors
Handling more than one client in a simple way
Prefork model, as found in Apache
Forking a new process per client
Cleaning up after finished processes
Threads
Inetd, systemd units
Waiting for data
Blocking sockets
Non-blocking sockets and select
Select as a way to wait for "any of these sockets"
Organizing reads and writes
Dealing with short reads and writes
Reading up to a delimiter
Pipelined requests
Application-level buffers
Event-driven architecture
Using select for multiplexing all client connections in one thread
State machines
Callback hell
Event libraries
"Green" threads
Problem of 10000 connections
Problems with prefork model and select-based loop
poll as an alternative to select
Realtime signals and why you shouldn't use them
Epoll (linux) and kqueue (BSD)
Why and when epoll and kqueue are faster than poll/select
Timeouts and timers
SIGALARM
Timeout as a select argument
A simple case of all-equal timeouts
Priority queue as an abstract data stracture
Binary heap as a priority queue implementation
Timer wheel
timerfd
Integration with the operating system
Traditional daemons
Systemd socket activation
Logging
Handling signals
Performance and scalability optimizations
Choosing the right architecture
Setting socket options

主站蜘蛛池模板: 哈尔滨市| 红原县| 如皋市| 新巴尔虎左旗| 太白县| 嘉鱼县| 荆州市| 武义县| 昌吉市| 武川县| 息烽县| 溧阳市| 资溪县| 新余市| 永年县| 舟山市| 水富县| 盘山县| 米脂县| 元谋县| 邢台市| 沾化县| 马边| 瑞昌市| 乐安县| 榆中县| 杨浦区| 灯塔市| 开化县| 淳安县| 河南省| 黑水县| 永川市| 宝山区| 陇川县| 东城区| 湾仔区| 双辽市| 瓮安县| 阿拉善盟| 谢通门县|