User vs Kernel mode

2006-10-16 Thread Olivier Nicole
Hi, I have an application that is running on virtual tty 0, i start it the following way: /etc/ttys ttyv0 /usr/libexec/getty Door cons25 on secure /etc/gettytab Door: :ht:np:sp#115200:al=door: /etc/passwd door:*:0:0:Run the door program:/usr/local/door:/usr/local/door/door

Re: User vs Kernel mode

2006-10-16 Thread Greg 'groggy' Lehey
On Tuesday, 17 October 2006 at 9:35:14 +0700, Olivier Nicole wrote: Hi, I have an application that is running on virtual tty 0, i start it the following way: /etc/ttys ttyv0 /usr/libexec/getty Door cons25 on secure /etc/gettytab Door: :ht:np:sp#115200:al=door:

Re: User vs Kernel mode

2006-10-16 Thread Olivier Nicole
Processes always start in kernel mode, because they're started by the kernel. They typically spend most of their time in kernel mode (for example, whenever they're idle or waiting for I/O). An active process may switch back and forward between kernel mode and user mode thousands of times a

Re: User vs Kernel mode

2006-10-16 Thread Greg 'groggy' Lehey
On Tuesday, 17 October 2006 at 9:52:17 +0700, Olivier Nicole wrote: Processes always start in kernel mode, because they're started by the kernel. They typically spend most of their time in kernel mode (for example, whenever they're idle or waiting for I/O). An active process may switch back