The sixth week after the resignation of the interview

After the morning went across the sea interview
questions are as follows:
did tomcat tuning it?

Use what type of mq? (Mq data structure?)
The Map and String
the session share redis hung up, how to deal with?
Use redis clusters, the latter snapshot recovery
transfer stand-alone business, with optimistic locking or pessimistic locking, pessimistic locking will use what is wrong?
Use pessimistic locking, such as sychronnized write more, less reading scene
set of data structures class set, list, map of?
The SET disorder can not be repeated, list order can be repeated, map support KV storage disorder

What The principle dubbo service registration found is that? Why do zookeeper registry?

The first is exposed to the server interface needs services, and registered zookeeper's IP and port number, then the consumer side is
through the corresponding IP address and port corresponding service found.
Good performance zookeeper, there are function monitoring, there are disaster recovery capabilities, provides a mechanism heartbeat,
can eliminate the time no response service

What is the difference httpclient and dubbo is?
dubbo is based on the RPC protocol, HTTPclient is based on the http protocol, service-oriented
calls, dubbo has better properties and more efficient.

What is a deadlock? Deadlock how to solve?
Two threads each hold the other party needs resources, causing the thread has been in a wait state.
Control locking sequence, and lock time.

What is the difference between the start and run multiple threads are? Which thread pool used?
start threads such that in the ready state, run a thread class is inherited or runable method override to

A There is a thread pool, where there are n tasks, is a main method in B, B, know how to make design A task has been executed over?
? ? ? Seeking answers

Guess you like

Origin www.cnblogs.com/islandlxl/p/11873943.html