How does forever behaves in fork block


In reply to dave_59:

Hi Dave,
I am also using the same code type above . I am facing a problem in my problem flag1 == 1 coming two times but print is coming only once. I need display whenever the signal flag1 ==1 .

Regards,
Jyothsna.