pthread and child process data sharing in C
        Posted  
        
            by mustafabattal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mustafabattal
        
        
        
        Published on 2010-04-03T09:53:49Z
        Indexed on 
            2010/04/03
            10:03 UTC
        
        
        Read the original article
        Hit count: 352
        
hi everyone,
my question is somewhat conceptual, how is parent process' data shared with child process created by a "fork()" call or with a thread created by "pthread_create()"
for example, are global variables directly passed into child process and if so, does modification on that variable made by child process effect value of it in parent process?
i appreciate partial and complete answers in advance, if i'm missing any existing resource, i'm sorry, i've done some search on google but couldn't find good results
thanks again for your time and answers
© Stack Overflow or respective owner