Re: cvs commit: src/lib/libthread_xu Makefile pthread.map src/li
:This is an optimisation for the intra-program switch if you want to call it so.
:I would argue that the normal switch case is either user -> kernel or to
:a different kernel thread.
You pretty much always want to have just a single page table with a
threaded program. The %cr3 optimization is a nice plus, but it isn't
why the page table is being shared. The page table is being shared
because trying to build a threaded program WITHOUT sharing the page
table is extremely expensive. Every time you'd allocate memory or map
something it would have to be replicated across N page tables.
Performance would be destroyed.
-Matt
討論串 (同標題文章)
完整討論串 (本文為第 8 之 24 篇):