摘要:
首先判断客户端和服务器连接是否正常# 客户端和服务器连接正常,返回PONGredis> PINGPONG # 客户端和服务器连接不正常(网络不正常或服务器未能正常运行),返回连接异常redis 127.0.0.1:6379> PINGCould not connect to Redis at 127... 阅读全文
摘要:
链接:https://leetcode.com/problems/two sum/ 题目内容: Given an array of integers, find two numbers such that they add up to a specific target number. T... 阅读全文
摘要:
转自:http://www.itzhai.com/the introduction and use of semaphore.html 相关介绍
public class Semaphore extends Object implements Serializable
一个计数信号量。从概念上讲,... 阅读全文
摘要:
转自:http://www.itzhai.com/the introduction and use of cyclicbarrier.html 类说明:
一个同步辅助类,它允许一组线程互相等待,直到到达某个公共屏障点 (common barrier point)。在涉及一组固定大小的线程的程序中,... 阅读全文