1. Engineering
  2. Computer Science
  3. show your steps please thank you...

Question: show your steps please thank you...

Question details

Show your steps please, thank you.

Exercise #2: Spying on a do nothingJava program [15pts] Install Java on your system, if not already installed (just type java and see if prints some command not found message or not), by doing: sudo apt install default-jre sudo apt install default-jdk Now create a do nothing Java program: public class DoNothing public static void main(String[] args) Compile this program (with javac) and run it with strace as follows: strace-xf -ojava output java DoNothing Important: Dont forget to include the file java output in the archive you turn in. WARNING: Some lines in the strace output may appear with the word resumed in them or with a message ke Answer the following questions: ex te w ←- rou must G ORE hes lines. (q1] Does the VM use the C++ standard library? f yes, cut and paste into your report the line of straces output that sino s he an to the standard C . [q2] The JVM uses the Pthread library (libpthreadso*). How many attempts does the JVM make to open this library? What are the locations where it tries to find it? Where does it eventually find it? Cut-and-paste into your report the lines of straces output that you used to answer these questions? [q3] How many system calls are placed in total? Explain the method you used (it is highly recommended to use the command-line, in which case just give your command(s) [q4] How many diferent system calls are placed (i.e., counting only one occurrence of a particular system call) ? Explain the method you used (it is highly recommended to use the command-line, in which case just give your command(s)) rar · · ·

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution