[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

RE: [CPROG] Hjärn-släpp ??



> 
> In article <sslug@sslug> you wrote:
> 
> > Fork er en meget mystisk funktion! Fordi du essentielt opretter
> > en kopi af det kørende program, med en kopi af alle variabler, og
> > fortsætter med at udføre både originalen (parent) og den nye kopi
> > (child). Den eneste forskel mellem de to programmer er det Pid
> > nummer som fork returnere.
> 
> > Så hvis programmet er meget stort så er det måske smartere at
> > bruge threads, istedet for forks.
> 
> Hmm, pthreads oprretter ekstra processer (set med ps) så måske
> det ikke er så meget smartere end fork ?
> Men man bør klart undgå at lave en fork() fra et megastort program
> hvis det skal ske alt for ofte.
> 

Har kommit på ett annat sätt att lösa mitt problem.
KDE/QT som jag använder har ett par funktioner som heter post message.
Kommer att använda dessa för att skicka info mellan mina klasser.

Men, threads osv. finns det väl bra dokumentation på eller ??

/Jocke!



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *