CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ CnUnix ] in KIDS
글 쓴 이(By): cella (오대형)
날 짜 (Date): 2004년 9월 21일 화요일 오전 11시 12분 23초
제 목(Title): Re: user thread, kernel thread



친절한 답변에 감사드립니다.
질문에 관련된 부분을 인용하자면 다음과 같습니다.

"Because thread management is done by the OS, kernel threads are generally
slower to create and manage than are user threads."

"User threads... Because the kernel is unaware of user-level threads, all 
thread creation and scheduling are done in user space without the need 
for kernel intervetion. Therefore, user-level threads are generally fast 
to create and manage."

그리고 한 가지 더 궁금한 게 있는데, Solaris 2에서 측정해보면 thread 의 
switching 이 process 의 context switching 보다 5배정도 빠르다고 하는데 
전체 register set 에서 일부만 save, reload 된다고 하더라도 
어떻게 5배나 차이가 나는 걸까요?

[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.