geosmart / geosmart.github.io Goto Github PK
View Code? Open in Web Editor NEW勿助勿忘,深造自得
Home Page: https://geosmart.github.io/
勿助勿忘,深造自得
Home Page: https://geosmart.github.io/
给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那两个整数,并返回他们的数组下标。你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例:给定 nums = [2, 7, 11, 15], target = 9因为 nums[0] + nums[1] = 2 + 7 = 9,所以返回 [0, 1]
http://geosmart.github.io/2020/03/23/2020-3-Java%E4%B8%AD%E7%9A%84NIO%E6%A8%A1%E5%9E%8B/
一个使用传统阻塞I/O的系统,如果使用一个请求对应一个线程这种模式,一旦有高并发的大量请求,就会有如下问题: 线程不够用, 就算使用了线程池复用线程也无济于事; 阻塞I/O模式下,会有大量的线程被阻塞,一直在等待数据,这个时候的线程被挂起,只能干等,CPU利用率很低,换句话说,系统的吞吐量低; 如果网络I/O堵塞或者有网络抖动或者网络故障等,线程的阻塞时间可能很长,整个系统也变的不可靠;
要学Netty,得先从IO模型入手,一点点来。从Unix系统的5个IO模型,JDK的3种IO模型,Reactor模式的3种实现,最后到Netty事件模型的3种实现。 本文主要搞清楚什么是Reactor模式?为什么要有Reactor模式?以及Reactor模式具体的3种实现方式是什么样的?
http://geosmart.github.io/2019/10/27/JDK-HashMap%E5%8E%9F%E7%90%86/
从HashMap的概念,结构,参数,性能,线程安全性,源码解析(put,get,resize),使用场景,常见问题8个方面进行分析。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.