nanogui: multi-thread or multi-process?


Previous by date: 5 Nov 1999 04:58:43 -0000 Re: Whoops - RETRACTION of last message, Greg Haerr
Next by date: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, Darran D. Rimron
Previous in thread: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, ShenChong
Next in thread: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, Darran D. Rimron

Subject: RE: multi-thread or multi-process?
From: Greg Haerr ####@####.####
Date: 5 Nov 1999 04:58:43 -0000
Message-Id: <01BF270F.D4E42F20.greg@censoft.com>

On Thursday, November 04, 1999 6:54 PM, ShenChong ####@####.#### wrote:
: In /nano-X-0.4/examples/demo.c
: 
First, you should update and run the latest, approximately six months newer:
	http://microwindows.censoft.com/pub/microwindows

Get the microwindows-0.86.tar.gz



: main() call GrNewWindow() to create 5 window,
: 
: But GrNewWindow() doesn't fork.
: 
: It seems that window isn't a standalone process.
: 
: Am I right?
: 
No

: Is there any plan to change it?

The way Nano-X works, the _entire_ demo.c program is run as
a separate process.  All the windows that it creates, of course
using GrNewWindow, will be owned by that process.

If you want multiple applications, you create another demo1.c,
and run that program.  When it connects to the server via the GrOpen()
call, it can create windows also.  Thus Linux provides the multi-processing
if required, Microwindows doesn't really deal with this at all yet.

If people want it, I could add a threads API to Microwindows, but
I've been currently more worried about getting the graphics API
up, and not introducing dependencies on particular platform implementations.

Greg

Previous by date: 5 Nov 1999 04:58:43 -0000 Re: Whoops - RETRACTION of last message, Greg Haerr
Next by date: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, Darran D. Rimron
Previous in thread: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, ShenChong
Next in thread: 5 Nov 1999 04:58:43 -0000 Re: multi-thread or multi-process?, Darran D. Rimron


Powered by ezmlm-browse 0.20.