Would you mind, Paul, giving a couple of examples of real life programs that you are thinking about?
I know personally that I couldn't get my head around this stuff unless I imagined some sort of application and how it would work using threads. Three things came to mind: How does DB2 do it? What would an HTTP server do? What about sort that divides the work among different threads? In my imaginings the total number of "structures" to handle was something like TotalThreads=N*Cpu_count, but was always fixed at any given time. That was just my guess. Thanks, Lindy -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: 23. tammikuuta 2008 1:00 To: [email protected] Subject: Re: How does ATTACH pass address of ECB to child? Aha! At last I see. That answers my question to Peter R. But I was envisioning a technique in which only one task at a time updates the queue, handing it back and forth with two ECBs. Now there's still need to manage concurrent accesses to the queue. I suppose CS can be used for that purpose. Whenever the queue is empty, the queue emptier WAITs. But if the queue is storage constrained, it can fill up. What does the queue filler do then? Thanks, gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

