首页 > 其他
生产者消费者模式(转)
本文转载自博文系列架构设计:生产者/消费者模式。文中对原文格式进行了稍加整理。概述 今天打算来介绍一下“生产者/消费者模式”,这玩意儿在很多开发领域都能派上用场。由于该模式很重要,打算分几个帖子来介绍。今天这个帖子先来扫盲一把。如果你对这个模式已经比较了解,请跳过本扫盲帖,直接看下一个帖子(关...
分类:其他   时间:2015-09-04 23:55:21    收藏:0  评论:0  赞:0  阅读:370
HDU 4359 Easy Tree DP?
Easy Tree DP?Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1487Accepted Submission(s): 567Probl...
分类:其他   时间:2015-09-04 23:54:51    收藏:0  评论:0  赞:0  阅读:378
8051汇编命令记录。
15年初出了个差,到现在才回到园子里……工作忙一方面,另外确实好久没搞这些东西了。原本想在8051单片机上搞个分时操作系统,所以看了下8051汇编下代码,总结记录如下:LJMP C:0149 //长跳转到0x0149地址开始执行命令,这条命令位于0x0000地址,是第一条命令。MOV R0,#0x7...
分类:其他   时间:2015-09-04 23:53:51    收藏:0  评论:0  赞:0  阅读:337
华为机试测试- 大数相加
方法一:直接使用BigDecimal方法二:字符串解析,注意stringBuilder.append(int x)这里的x最终会变成x字符串,而不是对应的char. 1 import java.math.BigDecimal; 2 import java.util.Scanner; 3 4 5 .....
分类:其他   时间:2015-09-04 23:53:41    收藏:0  评论:0  赞:0  阅读:420
菜鸟进阶——grunt
为保证作者版权在此声明本文部分摘自http://yujiangshui.com/grunt-basic-tutorial/另,参考文章http://www.tuicool.com/articles/yABV73及官方英文文档http://gruntjs.com/plugins开始学习 Grunt它就...
分类:其他   时间:2015-09-04 23:53:31    收藏:0  评论:0  赞:0  阅读:386
[LeetCode] H-Index
If you've read the Wikipedia article of H-Index, there is already a neat formula there for computing the h-index, which is written below using the not...
分类:其他   时间:2015-09-04 23:52:51    收藏:0  评论:0  赞:0  阅读:199
hdu 2509 博弈 *
多堆的情况要处理好孤单堆 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MOD 100000000710 const int ...
分类:其他   时间:2015-09-04 23:52:31    收藏:0  评论:0  赞:0  阅读:288
Uva657 - The die is cast
原题链接https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=598这题就是在一堆*里找X,相邻的X算一个,所以我们可以两次dfs搜索,dfs2搜*有多少堆,df...
分类:其他   时间:2015-09-04 23:52:11    收藏:0  评论:0  赞:0  阅读:288
获取二叉树深度叶子数
1 #include 2 using namespace std; 3 typedef struct node{ 4 char data; 5 node *lchild,*rchild; 6 }binode,*bitree; 7 bitree createTree(bitree ...
分类:其他   时间:2015-09-04 23:51:51    收藏:0  评论:0  赞:0  阅读:214
String and Datetime transform each other
MSSqlserver:1. Convert string to datetimecast('2015-08-26' as datetime) or convert(datetime,'2015-08-26')2. Convert string to datetimeOracle:1. Conver...
分类:其他   时间:2015-09-04 23:51:32    收藏:0  评论:0  赞:0  阅读:220
空间电荷区的宽度
电场力作用下载流子的运动即漂移运动pn结中内电场会抑制载流子扩散运动,而加强漂移运动内电场方向是由n区指向p区,因此p区空穴以及n区电子均会受到与扩散运动方向相反的电场力,由此扩散运动被抑制,而p区少子电子和n区少子空穴会因为电场力而运动,即漂移运动,空穴会由n区向p区移动,电子由p区向n区移动漂移...
分类:其他   时间:2015-09-04 23:51:02    收藏:0  评论:0  赞:0  阅读:360
poj 3669 Meteor Shower(bfs)
DescriptionBessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they ...
分类:其他   时间:2015-09-04 23:50:51    收藏:0  评论:0  赞:0  阅读:266
[LeetCode] H-Index II
This problem is designed specifically to use binary search. In fact, in H-Index, someone has already used this idea (you may refer to this post :-))Th...
分类:其他   时间:2015-09-04 23:50:21    收藏:0  评论:0  赞:0  阅读:209
linq 分组
var data = from r in listRecords group r by new { ...
分类:其他   时间:2015-09-04 23:50:01    收藏:0  评论:0  赞:0  阅读:176
黑马程序员------进制转换
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ------- 在java中数字的表现形式一般有二进制,八进制,十进制,十六进制等,在平时的编程中我们可以通过java提供的API函数方便的实现各个进制间的转换,如:Integer.toHexString(in....
分类:其他   时间:2015-09-04 23:49:41    收藏:0  评论:0  赞:0  阅读:207
解决WordPress后台安装主题、插件图片不显示的问题
今天搭建wordpress发现现在主题的时候预览图片都没有了,于是搜索了一下,发现下面的这个方法确实管用,于是转载收藏。有在WordPress后台安装主题、插件的小伙伴可能会遇到主题、插件图片不显示的问题,这给我们照成了不便。说到底还不是墙的问题,所以咱可以通过修改本地的hosts文件来决解。决解方...
分类:其他   时间:2015-09-04 23:49:11    收藏:0  评论:0  赞:1  阅读:517
hdu 1232 畅通工程
Problem Description 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间...
分类:其他   时间:2015-09-04 22:47:12    收藏:0  评论:0  赞:0  阅读:216
updateStateByKey--word count
http://blog.selfup.cn/619.html private?static?final?Pattern?SPACE?=?Pattern.compile("?"); public?static?void?main(String[]?args)?{ ????StreamingExamples.setStreamingLogLevels(); ? ...
分类:其他   时间:2015-09-04 22:46:22    收藏:0  评论:0  赞:0  阅读:321
ContextMenu和OptionsMenu主要有以下区别
1,ContextMenu必须通过Activity的registerForContextMenu(View)来进行注册,而OptionsMenu不用。 2,ContextMenu不支持icon,而OptionsMenu支持。 3,ContextMenu可以有头,可以通过setHeaderIcon,setHeaderTitl...
分类:其他   时间:2015-09-04 22:46:12    收藏:0  评论:0  赞:0  阅读:167
4.2 类与对象
现实世界中是如何描述一个事物的呢? 举例:学生 姓名,年龄,性别... 学习,吃饭,睡觉 属性:该事物的描述信息 行为:该事物能够做什么 我们学习编程语言,是为了模拟现实世界的事物的。 而我们学习的编程语言Java中...
分类:其他   时间:2015-09-04 22:45:12    收藏:0  评论:0  赞:0  阅读:207
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!