New topic: 

Does each Session have its own Thread?

<http://forums.realsoftware.com/viewtopic.php?t=45807>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        Jason_Adams          Post subject: Does each Session have its 
own Thread?Posted: Sun Nov 04, 2012 9:24 pm                                 
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1703
Location: Michigan, USA                If a session is doing something 
processor intensive, does that tie up only that Session, or the entire App?

So basically, to restate the subject, does each Session have its own unique 
Thread, or is it like Desktop where the Application runs on a single, main 
thread?

Thanks!      
_________________
Windows 7 Ultimate x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton  
                             Top                simulanics          Post 
subject: Re: Does each Session have its own Thread?Posted: Sun Nov 04, 2012 
10:17 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 807
Location: Boiling Springs, SC                I believe that it is threaded(as 
standalone..possibly since it uses an httpsocket..it must have 
_threadProtection set to true?)...except when run as a cgi...then it's threaded 
by apache or whatever server being used...don't quote me though..good 
question...      
_________________
Matthew A. Combatti
Real Studio 2012 r1.1
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top                Thom McGrath          Post 
subject: Re: Does each Session have its own Thread?Posted: Mon Nov 05, 2012 
3:06 am                       Site Admin                
Joined: Tue May 06, 2008 1:07 pm
Posts: 1235
Location: Greater Hartford Area, CT                The short answer is yes. The 
long answer is actually that each *request* is its own thread. This means two 
buttons on the same window could technically operate in parallel, though the 
client framework will wait for the response from one event before requesting 
the next. The client is queued. There is a possibility the client could become 
unqueued however.

This means effectively, yes, one thread per session. But there is a lot more 
going on behind the scenes, and we may allow multiple threads per session in 
the future.      
_________________
Thom McGrath - @tekcor
Web Framework Architect, Real Software, Inc.  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to