How it works...

We are going to set up three threads, each of which is assigned a target function. When the target function is executed and terminated, the function name is appropriately printed out.

For this example, the output should look like this (even if the order shown cannot be the same):

function_A--> starting 
function_B--> starting
function_C--> starting


function_A--> exiting
function_B--> exiting
function_C--> exiting
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset