Skip to Content
0
Feb 07, 2008 at 10:18 AM

Foreground and Background

176 Views

In my application a program can executed either in foreground or in background. when the program is executed in

the foreground , I dont want to execute certain portion of the code. Similaly, when the job is executed as a background job,

I dont want to execute certain portion of the code. Is it possible? If yes, please share the details.

Thank you in advance.