Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!kent From: kent@swrinde.nde.swri.edu (Kent D. Polk) Newsgroups: comp.sys.amiga.tech Subject: CreateNewProc Keywords: 2.0 Threads "shared/global" variables Message-ID: <484@swrinde.nde.swri.edu> Date: 29 Dec 90 00:41:23 GMT Organization: Southwest Research Institute, San Antonio, Texas Lines: 22 Please excuse my ignorance here: If I were to start a thread from a function in my code segment using CreateNewProc(), can I access variables global to the parent process? Or would this thread be a full-blown process for which I would need to set up a shared mem arrangement? The reason for this thread is to handle gadget input events for a window created by the parent since the parent is too busy to deal with them in a timely manner. I see I can pass the window ptr in the CreateNewProc() call. Is this kosher? Also, I assume I need to set up a message port in the parent process to send a 'kill' message. Since this thread will be used to handle all window input events for this window (created by the parent), the window message port should be adequate for receiving the 'kill' message, no? I.e., am I on the right track? Thanks much Kent Polk: Southwest Research Institute (512) 522-2882 Internet : kent@swrinde.nde.swri.edu UUCP : $ {cs.utexas.edu, gatech!petro, sun!texsun}!swrinde!kent