LockSupport explained in detail. It took 6 months to successfully join Alibaba

void park(): blocks the current thread. If the unpark method is called or the current thread is interrupted, it can be returned from the park() method void park(Object blocker): the function is the same as method 1. An Object object is added to the input parameter to record the blocking objects that cause thread blocking, so as to facilitate ...

Posted by quikone on Wed, 24 Nov 2021 04:23:54 -0800

Complete collection of Java interview questions (continuously updated, interview with Java Senior Development Engineer)

13. Look at the program and write the results class Fu{ public int num = 10; public Fu(){ System.out.println("fu"); } } class Zi extends Fu{ public int num = 20; public Zi(){ System.out.println("zi"); } public void show(){ int num = 30; System.out.println(num); System.out.println(this.num); System.out.prin ...

Posted by JimF on Wed, 24 Nov 2021 02:13:13 -0800

zap receives the default log of gin framework

The previous two articles have introduced how to use logs in golang, and zap has been selected as our log framework in many log framework libraries. This article will explain:How to print the request log in combination with the current mainstream Web framework ginEncapsulate zap twice and inject trace information. Once, we can query all the com ...

Posted by Schwalbach on Wed, 24 Nov 2021 00:37:41 -0800

Flink Kafka source God operated Flink Kafka connector

introduction Flink provides a special Kafka connector to read or write data to Kafka topic. Flink Kafka Consumer integrates Flink's Checkpoint mechanism to provide exactly once processing semantics. For this reason, Flink does not completely rely on tracking the offset of Kafka consumption group, but tracks and checks the offset internally. W ...

Posted by bbbaldie on Wed, 24 Nov 2021 00:25:14 -0800

How does python operate HDF5 files? After reading this article, you will understand it all

HDF Hierarchical Data Format, also known as HDF5 In deep learning, a large amount of data or pictures are usually used to train the network. For such a large data set, if each picture is read separately from the hard disk, preprocessed, and then sent to the network for training, verification or testing, it is too inefficient. If these pictur ...

Posted by nuttynibbles on Tue, 23 Nov 2021 22:06:00 -0800

Thunder fighter 9.5 is newly launched, and Python+Pygame develops a complete game project of aircraft War (with source code)

Project Name: Space War Development environment: Python 3.6.4 Third party Library: Pygame1.9.6 Code editor: Sublime Text Let's take a look at the game screen first!   The game screen is dynamic and rich!   requirement analysis Use Python to develop a space war, providing UI, Bgm and rich game picture materials. The upper left cor ...

Posted by Vidya_tr on Tue, 23 Nov 2021 20:41:07 -0800

CBV class view and class view decorator of Django framework

preface Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection Therefore, I dev ...

Posted by skyxmen on Tue, 23 Nov 2021 18:21:19 -0800

C++_ Illustration of insertion search judgment of hand torn red black tree_ KeyValue model (trigeminal chain)

1. Red black tree concept First look at the AVL tree: AVL tree is a highly balanced binary search tree Implementation of AVL tree insertion Look at the red and black trees: The Red Black tree is also a binary search tree. However, a storage bit is added to each node to represent the color of the node, which can be Red or Black. By limiting ...

Posted by tekky on Tue, 23 Nov 2021 17:43:41 -0800

One article has a thorough understanding of Python module. Those who can't have a thorough understanding should look at their teeth

  1. Module introduction 1.1 what is a module When writing a long program, it is recommended to use a text editor instead of an interpreter to execute the input in the file, which is writing   script  . As the program gets longer and longer, in order to facilitate maintenance, it is best to split the script into multiple files. ...

Posted by chinni_77 on Tue, 23 Nov 2021 16:18:54 -0800

Teach you to play real nixie tube

Our ultimate goal is to be lazy. Working together is to see you work hard, and I am lazy to enjoy. Therefore, in order to be lazy, frame programming is inevitable. In my blog in the future, I hope everyone is frame programming. Those who are irregular should be serious and diligent. We are too lazy to be worthy of you. joy:, remember that we ar ...

Posted by nickk on Tue, 23 Nov 2021 08:40:05 -0800