Discover java concurrency in practice book, include the articles, news, trends, analysis and practical advice about java concurrency in practice book on alibabacloud.com
specification, but a readable book that introduces the characteristics of each language. The book is well balanced in rigor and education, enabling programmers to quickly be attracted to the Java language (and its rich class libraries).
Concurrent Programming in Java:design Principles and Patterns (Doug Lea)
Concurrent Programming in Java:design Principles and
write operation is volatile also called a variable rule before the next read Operation volatile .
Any operation within a thread must be called after the start () Call of this thread, also known as the thread initiation rule.
A thread terminates the rule before all operations on a thread are terminated.
The end operation of an object must also be called an object finalization rule after the object is constructed.
Transitivity
I strongly recommend that you read the 16th chapt
what makes you a better programmer is learning how to think, because eventually you convert the logic in your mind into a series of instructions for manipulating your computer so that the computer can follow the instructions to solve the problem.Learning how to think correctly-how to abstract, how to combine, how to analyze information, how to self-examine-can be done in a variety of ways, far from programming.There is a book: "Hackers and painters",
solve competition?This is an issue that appears in the advanced stages of a multithreaded interview. Most interviewers will ask about the competitive conditions you've met recently and how you've solved them. Some time they will write simple code, and then let you detect the code's competitive conditions. You can refer to the article I published earlier about the Java competition criteria. In my opinion this is one of the best
In the daily Java code development process, it is inevitable to have multi-threaded requirements, mastering the Java multithreading and concurrency mechanism is the Java programmer to write more robust and efficient code base. I find the domestic published on the Java Multi-
lock: When multiple threads are waiting for the same lock, they must be queued in the order in which they are requested, while non-fair locks do not guarantee this, and any thread that waits for a lock has a chance to acquire a lock when the lock is released. Synchronized locks are not fair when locked, Reentrantlock is also an unfair lock by default, but you can require a fair lock by constructing method Reentrantlock (ture).3. Locks can bind multiple conditions: The Reentrantlock object can b
to cultivate excellent programming ideas, is really a rare good book.Although the author has positioned the book at the entry-level, I'm not sure if the book is a bit too deep for getting started, and I'm ready to flip through the book When I'm free to learn.
Second, Java Programming Advanced classLay a good
Java Concurrency structureOriginal link: http://gee.cs.oswego.edu/dl/cpj/mechanics.htmlContent
Thread
Synchronous
Monitor
ThreadA thread is a sequence of calls that are executed independently, and the threads of the same process share some system resources (such as file handles) at the same time to access the object resources (memory resources) created by the same process. The Java.lan
Java Open source Fresh e-commerce platform discussion and solution of concurrency problem and lock mechanism in-oms Order system (source code can be downloaded)Description: Discussion and solution of concurrency problem and lock mechanism in OMS order system of Java Open Source fresh e-commerce:Origin of the problemSup
am not sure if it is a little deep in getting started. I also want to flip this book and learn it when I have time.
Ii. Advanced Java programming
To lay a good Java Foundation, more practical experience is needed. I don't think there is any shortcut. There are two books worth reading at this stage of your programming career, cultivating good programming habi
Why concurrency is requiredConcurrency is actually a decoupling strategy that helps us to separate what we do (the target) and when we do it (timing). Doing so can significantly improve the throughput of the application (getting more CPU scheduling time) and structure (multiple parts of the program are working together). As anyone who has ever done Java Web Development knows, the servlet program in the
Monthly salary: 30 K java programmer 2018 java learning advanced Book recommendation, 2018
What books does java have to read? The first example of this article is "Java development practices and classics", because I think that beginners who have not been in touch with
(); if NULL ) throw newsecurityexception ("Unsafe"); return Theunsafe;}Note The bold section of the code, which checks the class that calls the Getunsafe () function, and if the class's classloader is not NULL, throws the exception directly, rejecting the work. Therefore, this also makes it impossible for our own applications to use the unsafe class directly. It is an exclusive class used within the JDK.Note: Depending on how the Java
The concept of first contact deadlock is the "Philosopher's meal" as described in the principle of operating system in a university course. In the operating system, a deadlock problem may occur because each process shares system resources. In the same Java multithreaded environment, there are also deadlock problems caused by resource sharing. When a set of Java threads Deadlock, it is possible that the prog
points, the book in a gradual manner will be multi-threaded development of the most should cultivate a few points, to explain:
Atomic Nature
First check and then execute
Atomic class
Locking mechanism
Visibility of
Re-arrange
Non-64-bit write problem
Publication of objects
Enclosing an object
Non-denaturing
In a book writ
An article reads Java concurrency and thread security, and understands java concurrent threads
I. Preface
For a long time, I have been trying to analyze the essence of Java thread security. However, I had to put it on hold because I had some micro-points that I couldn't understand, all the points are connected in a ser
the Cultural Foundation, the same reason, the programmer and the programmer finally competition is the foundation , when you envy others "the ease" the easy solution to a very difficult bug; When moving your finger to solve a performance problem , and quickly grasp a new technology in a short period of time, please don't forget that he may have spent years or even decades practicing the "textbook" that you abandoned.Finally recommended a few of the operating system
In general development, I often see many students in the Java Concurrent development model will only use some basic methods. Like volatile,synchronized. High-level contracts such as lock and atomic are not often used by many people. I think most of the reasons are due to the nature of the principle. In the busy development work, who will be able to accurately grasp and use the correct concurrency model?
So
The following is transferred from http://ifeve.com/anatomy-of-a-synchronizer/:Although many synchronizers (such as locks, semaphores, blocking queues, etc.) function differently, their internal design is very different. In other words, the underlying parts of their internals are identical (or similar). Understanding these basic components can help us greatly when designing Synchronizer. This is what this article is going to elaborate.Note: The content of this article is the Bjørn of the Universi
false. 6. Break rules. When a thread calls interrupt on another thread, it must be executed before the interrupt call is detected by the interrupted thread. 7. Finalizer rules. The constructor of the object must be completed before the finalizer of the object is started. 8. transitivity. If operation A is performed before action B, action B is performed before Operation C, then action A must be performed before Operation C. Double check lock
/**
* Double check plus lock, uns
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.