Lab: threads and Chrome
Lab session of 19 September 2018. All labs
- Install Chromium for Linux
- Use ps command to find all threads for Chrome
- Open new tabs in Chrome. How does the number of threads increase
- Use top command for find all threads for Chrome
- Use pstree to find all threads for Chrome
- Use /proc/pid to find out more:
- cmdline?
- Exe? Hexdump on exe.
- Status
- Tasks
- Explore other things…
- can you see the process page map?
- What are different processes and threads corresponding to Chrome
- What are their cmdlines
- Open Chrome in different modes using different arguments and see how #threads/processes vary per #tabs/#unique domains
- Any secret key?
- How does Chrome send data to Google?
- Syscalls? Attach strace to the process
- What does /proc contain
- watch -n 1 cat interrupts
- cat cpuinfo
- devices
- …
- Write hello world threaded program without any variable sharing
- How do you compile this program?
- Write hello world program that has two threads increasing the value of a counter
- Do an object dump to find the critical section of the code.