Virtual consoles

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
ManOfSteel
Member
Member
Posts: 60
Joined: Tue Feb 01, 2005 12:00 am

Virtual consoles

Post by ManOfSteel »

Hello,
I would like to know if every virtual console in systems such as Unix form separate processes or if they are just one process using separate buffers to store every virtual screen in?
Thank you in advance.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Post by Pype.Clicker »

> ps aux | less
...
root 7135 0.0 0.0 1556 416 tty3 Ss+ Jan25 0:00 /sbin/getty 38400 tty3
root 7136 0.0 0.0 1560 416 tty4 Ss+ Jan25 0:00 /sbin/getty 38400 tty4
root 7137 0.0 0.0 1560 416 tty5 Ss+ Jan25 0:00 /sbin/getty 38400 tty5
root 7138 0.0 0.0 1556 416 tty6 Ss+ Jan25 0:00 /sbin/getty 38400 tty6
...
So they quite look to be different process to me. now, how exactly the frame buffer access is shared among them goes beyond my knowledge.
User avatar
ManOfSteel
Member
Member
Posts: 60
Joined: Tue Feb 01, 2005 12:00 am

Post by ManOfSteel »

2 minutes, super fast, eh!
Thanks.
User avatar
lode
Posts: 15
Joined: Tue Oct 17, 2006 6:28 pm
Location: Oulu, Finland

Post by lode »

Getty is not a virtual console driver, it's just responsible for keeping the login prompt up. It doesn't even care (nor know) if it's launched on a serial port. I believe most of the unixes have their virtual console drivers inside their kernels, eg. no processes.
Post Reply