From: Dr. Michael Weller (eowmob@exp-math.uni-essen.de)
Date: Fri 26 Mar 1999 - 11:25:48 IST
On Thu, 25 Mar 1999 pramod@anaconda.ee.iitm.ernet.in wrote: > Hi , > I am writing a application which involves using SVGA library . The > problem is I have two processes the parent and the child ( which I create > using fork() ) which have to access the screen . That is both the parent > and child both should be able to draw on the screen . Is this possible .If > so where do I call vga_setmode etc . Do I call in both the processes or > only in the parent . IT IS PRETTY URGENT AND IT WILL BE KIND OF YOU IF YOU > COULD MAIL IT BACK TO ME AS I AM NOT A MEMBER OF THIS LIST . Due to the internal nature of svgalib, and principle constraints of accessing a graphics card from user mode, you simply can NOT do this. All graphics calls, be it drawing or setting of modes must be in a single hand. There is no instance in linux that will manage several processes accessing the screen at once. You'll have to write a foreground process doing all the graphics and background processes sending it messages to draw something. This is basically what X does too. Michael. -- Michael Weller: eowmob@exp-math.uni-essen.de, eowmob@ms.exp-math.uni-essen.de, or even mat42b@spi.power.uni-essen.de. If you encounter an eowmob account on any machine in the net, it's very likely it's me.
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST