2014年11月22日 星期六

[10/31 ]社群 - Linux 讀書會(Jserv)

Linux 讀書會(Jserv)

第一場的Linux 讀書會

這次是由Jserv親自介紹Process Management和System calls
Jserv的分享非常扎實
不過其實我根本聽不太懂
所以我就依我聽到的部分做描述

也許會有不少誤差,待我程度提升後再來改正吧
linux是在x86上開發的

所以其實linux不區分process and threads

Linux has a unique implementation of threads.
To the Linux kernel, there is no concept of a thread.
Linux implements all threads as standard processes


還有提到clone() 

不論process or thread皆使用clone呼叫

此實作上較為簡單,但較無法發揮多核心效能

不過此問題漸漸的被解決了

至於怎麼解決我不確定是我沒記錄到還是jserv沒有提

總之很難過的我聽不懂



再來解說vfork()-fork()退化版

例如BBS大量呼叫fork()

uClinux -> no MMU -> 所以沒有 fork  

原因是為了效能考量


然後unix第二版開始 使用ptraced


開始就是依些比較輕鬆的話題

例如

create拼錯變成creat,但為了相容,就這樣從1970年錯到現在

介紹為了讓人不容易呼叫reboot 而設計的 linux magic number

也提到freebsd reboot system call 很乾淨等等


這次讀書會讓我學到的專業不多

因為大部分我都聽不懂

但卻很有啟發

讓我知道"還要更努力"

也是一次豐富的收穫



最後同樣附上課程HACKPAD
Process Management
System calls

沒有留言:

張貼留言