[Gambas-user] Re; Threads ...

Gareth Bult gareth at ...2066...
Fri Feb 6 10:25:49 CET 2009


Erm,

I'm looking to write an online application that requires a memory resident HTTP daemon which is capable of servicing a relatively high load. I'm simply trying to determine whether I can use Gambas for the job ... I know I can use other languages, the existing code is written in Python, I'd just like to make more use of Gambas where possible.

Gareth.

----- Original Message -----
From: "Rob" <sourceforge-raindog2 at ...94...>
To: gambas-user at lists.sourceforge.net
Sent: Friday, 6 February, 2009 3:08:27 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Gambas-user] Re; Threads ...

On Thursday 05 February 2009 20:46, Gareth Bult wrote:
> I'm trying to decide whether to try Gambas for a Web project because
> I've seen people mention that one of the design features (?) was that it
> could run web server type applications (?) 

Gambasdoc.org actually runs on a Gambas web application written by Benoit.  
You can find its source as app/src/doc.cgi in the Gambas tarball.

> .. I'm thinking multiple 
> threads could be emulated by running the application a number of times
> and using some sort of IPC mechanism to share session information ... is
> there a more elegant solution to the problem of serving pages / IO
> blocking?

You're talking about writing an actual HTTP daemon in Gambas?  I don't 
think that's really necessary, but it's been done in Perl, Python, etc. 
for particular applications.

If you're going to start multiple copies of the program to simulate 
multithreading, you might as well just run it as an xinetd service using a 
file or database store for session information.

Rob

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Gareth Bult (Gareth at ...2067...)




More information about the User mailing list