Create a thread in either a C or a Java program and run it. The thread should read a keyboard value "x" and exit from the code, or it can also use an "ESC" to exit. That is, the thread should run until the keyboard exit character is entered. Print your source code and output to a single file and generate a file hw4NAME.pdf and submit it in the Blackboard. Put your compile and run options if any in the code as comments. The "NAME" indicates your last name.