|
Geez Terry you are keeping me busy this morning :-)
>I thing I know what a Thread is, it is the context in which the FCS carries
>out work. Which means that there will be one thread for each, task, session
>or housekeeping activity. Right?
A thread is basically an execution path for the server. Each incoming
request gets its own thread, there can be multiple threads per session
(asynch calls the most common way of getting this) and there could
be multipel threads per task.
Also there are several background thread (housekeeping as you put it)
like the garbage collction thread for instance
>What is the difference between a Task and a Session?
A session is basically a user connection while a task is a request on
behalf of a session.
>Is a session a connection
>from a client or a FCS manager, and a task the work involved in satisfying
>a single request from a client.
Basically yes. A session is created for every connection to the FCS
be it a client, manager or another server (brokered operation). Each
session will have a task, possibly multiple tasks.
Each task gets its own thread.
>If this is correct there would be many
>tasks in the context of a fewer number of sessions. Is this correct?
Yup, possibly. If all calls are synchronous calls then there would be
a single task active for a session. There could be no open task for a
session. If you make asynch calls then you can have multiple active
tasks per session. I believe ALL-IN-1 makes all asynch calls.
>Assuming the above are more-or-less correct ...
close enough to move on :-)
>Is a different thread used for each task, or is the same thread used for all
>the tasks in a session?
Each task gets a different thread. Wehn the server receives a request
it creates a thread. When the task is done, all its threads are killed.
>Lots of questions, thanks in advance for any answers,
Hope that answers them all.
--Bob
|
| Bob,
Thanks for your help in answering my many questions. There will probably be
many more before I have finished, I havn't even started looking at
troubleshooting in detail yet ;^}
Seriously, I appreciate all the help I am getting in putting together this
course, hopefully the CSC will be better prepaired for the support of the FCS
and have to raise fewer problems to engineering.
Thanks, and keep up the good work :-)
Terry
|