? 输入 Count 个 32 位有符号整数,计算他们的和 ● 代码,使用堆栈传参 ● 代码,使用伪指令 PROTO 和 INVOKE 传参 ...
分类:
编程语言 时间:
2018-09-09 16:04:08
阅读次数:
165
所遇到的坑:必须使用如下的jedis 版本与spring-data-redis 版本,才能够达到集群效果 。1.7版本以前是不支持集群的 ***********集群配置********** **********单机版配置******* 在java 代码中引入即可 ...
分类:
编程语言 时间:
2018-09-09 15:19:04
阅读次数:
173
线程间协作:wait、notify、notifyAll 在 Java 中,可以通过配合调用 Object 对象的 wait() 方法和 notify()方法或 notifyAll() 方法来实现线程间的通信。在线程中调用 wait() 方法,将阻塞等待其他线程的通知(其他线程调用 notify() ...
分类:
编程语言 时间:
2018-09-09 11:50:20
阅读次数:
117
Remmarguts' Date Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 36881 Accepted: 10169 Description "Good man never makes girls wait or brea ...
分类:
其他好文 时间:
2018-09-08 22:40:33
阅读次数:
190
Linux异步通知fasync linux设备驱动归纳总结(三):7. 异步通知fasync xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 异步通知fasync是应用于系统调用signa ...
分类:
系统相关 时间:
2018-09-08 15:24:00
阅读次数:
177
import time import random from multiprocessing import Process,Event def cars(e,i): if not e.is_set(): print('car%d在等待'%i) e.wait() print('\033[33mcar%... ...
分类:
其他好文 时间:
2018-09-07 21:11:14
阅读次数:
166
1、laravel官方提供了一些优化(laravel 5.* 版本): (1)、关闭debug,修改 .env 的 APP_DEBUG=false (2)、 sudo php artisan route:cache 路由缓存 (清理路由缓存 sudo php artisan route:clear) ...
分类:
Web程序 时间:
2018-09-07 19:13:47
阅读次数:
215
ICE(Internet Communications Engine)是Zeroc提供的一款高性能的中间件。使用ICE能使得php(或c++,java,python)与java,c++,.net,python等进行交互。基于ICE可以实现电信级的解决方案。 1第一个问题:为什么要使用中间件? 设想一 ...
分类:
Web程序 时间:
2018-09-07 13:53:35
阅读次数:
234
A frog has just learned some number theory, and can't wait to show his ability to his girlfriend. Now the frog is sitting on a grid map of infinite ro ...
分类:
其他好文 时间:
2018-09-06 23:03:33
阅读次数:
259