TT- multithreading

1, parallel and concurrent What is the difference?

2, the difference between threads and processes?

3, guard what threads are?

4. What are the different ways to create a thread?

5, say something runnable and callable What is the difference?

6, the thread which state?

7, sleep () and wait () What is the difference?

8, notify () and notifyAll () What is the difference?

43. The thread's run () and start () What is the difference?

44. create a thread pool, which has several ways?

45. What are the thread pool status?

46. ​​The thread pool submit () and execute () method What is the difference?

47. In the java program how to ensure the safe operation of multi-threaded?

48. What is the principle of multi-threaded lock upgrade is?

49. What is a deadlock?

50. how to prevent a deadlock?

51. ThreadLocal What is that? What are the usage scenarios?

52. talk about synchronized to achieve the underlying principle?

What is the difference 53. synchronized and volatile that?

54. synchronized and Lock What is the difference?

55. synchronized and ReentrantLock What is the difference?

56. talk about atomic principle?

Guess you like

Origin www.cnblogs.com/cm039/p/12067360.html
TT