The difference between Thread and Runnable

... First talk about the difference between process and thread: process: Each process has independent code and data space (process context), the switch between processes will have greater overhead A process contains 1-n threads. Thread: The same class of threads share code and data space....


lMonster81

... gives an array of integers and a target value, and finds the two numbers in the array. You can assume that each input corresponds to only one answer, and the same elements cannot be reused. Example: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[ 0 ] + nums[ 1 ] = 2 + 7 = 9 So return [ 0,...


JVM_Summary_02_JavaTechnical System

... 一, Foreword 上节, we built the Java development environment, this section, we look at the Java technology system 二, Java technology System 1. By function If only in the traditional sense, the official Java technology system defined by Sun includes the following components: Java编程语言 Byte...


How do non-class Java programmers add computer basics and what books do they need to read?

... java is quite special. After all, the backend is a tyrant. If you want to learn Java well, you must have a good computer foundation, but why do you need a foundation? I understand this question and it is much clearer to learn the basics. The first question, the system used by 10 users...


Eureka Service Registration Center's inquiry

... Eureka Service Registration Center's inquiry 1, what is Eureka similar to Consul, Zookeeper, Eureka is a component for service registration and discovery, the first major Applied to Amazon's cloud computing service platform AWSo Eureka is divided into Eureka Server and Eureka Client,...


Do you really use the List in Java?

... List is a more commonly used collection class in Java. There are many implementation classes for the List interface. This article will briefly introduce the relationship and difference between the implementation of ArrayList, LinkedList and Vector. List List is an interface that...


Multi-threaded concurrent package learning summary (a) Lock lock

... Why need lock lock 1. Because we need a mechanism to prevent waiting threads from waiting indefinitely (such as waiting for a certain amount of time or being able to respond to interrupts), you can do it with Lock. 2. Through Lock, you can know if the thread has successfully acquired...


If you don't want to take the management route, how should the programmer's career grow?

... In your life, is it a good career choice to stay in the software engineer position? Or do you have to switch to a management position to continue the ladder of your engineering career? This is what engineers recently wanted to know on Quora, and this is an important and worthwhile issue...


Project facet Java version 1.8 not supported

... Project facet Java version 1.8 not supported In the development process of the javaweb project will encounter various problems, then you need to solve some problems, when the project is copied from other computers Then import into your own eclipse will prompt for Project facet Java...


Jenkins can not start Tomcat through the shell and the process is killed after the startup

... Build a continuous integration environment based on Jenkins+Svn+Maven+Tomcat, combined with the shell to achieve automatic compilation and testing, where Jenkins is started by Tomcat of. 问题一, Tomcat can not start A phenomenon occurs during the build process, automatically compile, stop...