Hi, charan raj a écrit : > i just came across this unlikely() and likely() function in kernel code ( eg > .. unlikely() is used in fork.c ) , i don;t have any idea > about what the above 2 functions does ...... Have a look at this thread of the mailing-list: http://mail.nl.linux.org/kernelnewbies/2005-08/msg00499.html. There have been numerous explanations, and I gave an example of the effect of unlikely() and likely() on the generated assembly code, see http://mail.nl.linux.org/kernelnewbies/2005-08/msg00511.html. Sincerly, Thomas -- Thomas Petazzoni thomas.petazzoni@xxxxxxxx -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/