Comparison of Solaris, Linux, and FreeBSD Kernels
Please support our Kernels and Modules advertiser: Programming Forums
![]() |
•
•
Posts: 195
Reputation:
Solved Threads: 0
http://www.opensolaris.org/os/articl...eebsd_kernels/
Scheduling and Schedulers
The basic unit of scheduling in Solaris is the kthread_t; in FreeBSD, the thread; and in Linux, the task_struct. Solaris represents each process as a proc_t, and each thread within the process has a kthread_t. Linux represents processes (and threads) by task_struct structures. A single-threaded process in Linux has a single task_struct. A single-threaded process in Solaris has a proc_t, a single kthread_t, and a klwp_t. The klwp_t provides a save area for threads switching between user and kernel modes. A single-threaded process in FreeBSD has a proc struct, a thread struct, and a ksegrp struct. The ksegrp is a "kernel scheduling entity group." Effectively, all three OSes schedule threads, where a thread is a kthread_t in Solaris, a thread structure in FreeBSD, and a task_struct in Linux.
Scheduling and Schedulers
The basic unit of scheduling in Solaris is the kthread_t; in FreeBSD, the thread; and in Linux, the task_struct. Solaris represents each process as a proc_t, and each thread within the process has a kthread_t. Linux represents processes (and threads) by task_struct structures. A single-threaded process in Linux has a single task_struct. A single-threaded process in Solaris has a proc_t, a single kthread_t, and a klwp_t. The klwp_t provides a save area for threads switching between user and kernel modes. A single-threaded process in FreeBSD has a proc struct, a thread struct, and a ksegrp struct. The ksegrp is a "kernel scheduling entity group." Effectively, all three OSes schedule threads, where a thread is a kthread_t in Solaris, a thread structure in FreeBSD, and a task_struct in Linux.
![]() |
Similar Threads
Other Threads in the Kernels and Modules Forum
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Gentoo and KDE... (Getting Started and Choosing a Distro)
- Linux shell commands on Windows (IT Professionals' Lounge)
- Solaris 10? (Getting Started and Choosing a Distro)
- XP, Redhat, Xandros, FreeBSD on one machine? (*nix Software)
- linux and windows xp (Computer Science)
- Cross-compiler for C? (C)
- Why Novell will beat Linux (Novell)
Other Threads in the Kernels and Modules Forum
- Previous Thread: linux commands
- Next Thread: Sun Release Latest Server Technology
•
•
•
•
Views: 3679 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode