2019 24th Sunday

JDK8 introduced a high-performance read-write locks StampedLock, its core idea is that if a write occurs, it should be to obtain a new value by retrying the way read, write and should not be blocked. This pattern is typical of lock-free programming ideas, and CAS spin thinking the same. This mode of operation determines the next StampedLock reading the thread very much and very few write-threaded scene is very suitable, but also to avoid starvation write happening.

CAS spin operation is less than the block waiting to pay attention to the use of the premise of high-performance read-write lock, if multiple threads are blocked every scene, and that the direct use pessimistic locking might be better.

 

Using the Instrumentation, a developer can build an application-independent Agent (- Agent), for monitoring and assisting programs running on the JVM, alternatives and modifications can even define certain class. Instrumentation is Java SE 5 new features. Can only be loaded prior to running in the SE 5, SE 6 when loaded during operation can be realized. E.g. java -javaagent: agent.jar -jar agent-demo.jar

  

Programmer to master the technique of speed out of the business model may not have eliminated faster, the business model of rapid advances in technology and update necessary requirement to quickly update to support its development.

In addition to luck, most profitable programmers have a very keen business mind, they will not only make things technical landing, but know what to do social needs, can produce greater value. For example, take private live, hire a bunch of people take private live; others teach programming and production of video tutorials to teach someone else to write the code under the lines. 

 

Technology is only a means to solve problems, to solve different problems in different scenarios may use different tools, so you can not only certain technique, the design of the program to be more important than technology selection, to see which technology is more suitable for the team, which lower cost technology to solve problems, what kind of technology in the long run to achieve greater efficiency.

We know the evolution of technology, principle and driving force behind it, makes you a better understanding of its future development.

 

Modern society to want to do better, must properly handle the relationship with neighboring colleagues that make up management (timely communication to confirm objectives, plans, regular feedback to communicate the progress of the task, the higher management and try to exceed expectations), and to do well down horizontal management and administration (to mobilize additional resources to achieve their goals concerted own original).

Guess you like

Origin www.cnblogs.com/doit8791/p/11030897.html