Program description:
Infinite loop in a program starts working with 2 seconds the screen (console) "I 'm trying" to write, but it automatically after 10 seconds, the screen "Close" will terminate the execution of typing.
c++ code
I couldn't get your English, but I hope this is what you want, basically. This small program prints hello world on the screen after two seconds, for an infinite number of times.
Sorry mate, I am a novice myself, the only help that I could give you for the moment is, check the manual pages of all the functions, you will get all the details to solve your problem. Start by reading the manual page of the signal function, just type
man signal
Sorry once again, but don't worry someone would surely come for your help.