Show ProgressBar progress after function call

Hi,

I need to implement progress bar using thread. This bar needs to be synced with all the functions in application. I mean whenever the first function call is completed the progress bar should show progress and so on for other functions too. The functions are not on one page rather on different pages.

Please provide me with some code apart from the online links.

Thanks in advance,
Vini