上一页 1 ··· 133 134 135 136 137 138 139 140 141 ··· 152 下一页
摘要: 改动共享数据会给共享数据带来问题。假设共享的数据是仅仅读的话,就不会带来问题。假设数据能够改动。有超过两个以上的线程改动数据就会带来问题。必须用一些方法来消除问题。 资源竞争(race condition) 资源竞争是指在多线程环境下,程序结果的输出依赖于相关线程的运行顺序。英文:A race co 阅读全文
posted @ 2017-04-29 18:00 cxchanpin 阅读(1106) 评论(0) 推荐(0)
摘要: 一伙劫匪在抢劫银行时说了一句至理名言: “通通不许动,钱是国家的,命是自己的!”大家都一声不吭躺倒。 【这叫观念转化,改变原有固定思维方式】 劫匪望了一眼穿着裙子躺在桌上呈大字形的出纳小姐。说:“请你躺文明些!这是劫財。又不是劫色!” 【这叫坚持职业操守,不该干的不干】 抢劫成功回去后,当中一个新来 阅读全文
posted @ 2017-04-29 16:39 cxchanpin 阅读(186) 评论(0) 推荐(0)
摘要: 题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a c 阅读全文
posted @ 2017-04-29 16:02 cxchanpin 阅读(155) 评论(0) 推荐(0)
摘要: title: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 翻译: 10下面的质数的和为2 + 3 + 5 + 7 = 17。 请求出20 阅读全文
posted @ 2017-04-29 14:47 cxchanpin 阅读(151) 评论(0) 推荐(0)
摘要: 1、二叉树定义: typedef struct BTreeNodeElement_t_ { void *data; } BTreeNodeElement_t; typedef struct BTreeNode_t_ { BTreeNodeElement_t *m_pElemt; struct BTr 阅读全文
posted @ 2017-04-29 13:54 cxchanpin 阅读(472) 评论(0) 推荐(0)
摘要: import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.net.Net 阅读全文
posted @ 2017-04-29 12:50 cxchanpin 阅读(172) 评论(0) 推荐(0)
摘要: 畅通project Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 31588 Accepted Submission(s): 16638 Pr 阅读全文
posted @ 2017-04-29 12:10 cxchanpin 阅读(156) 评论(0) 推荐(0)
摘要: 1,%default file test.txt 中不要用引號,'' 和“”都不行。'file'不会被识别 2,pig推断相等,用==,不是一个=。、 3。pig中仅仅用单引號。不用双引號。如: target_data = FILTER analyze_data BY (wizad_ad_id==' 阅读全文
posted @ 2017-04-29 11:30 cxchanpin 阅读(669) 评论(0) 推荐(0)
摘要: 1.类型转换 命名的强制类型转换: 有static_cast、dynamic_cast、const_cast、reinterpret_cast static_cast: 编译器隐式运行的不论什么类型转换都能够由static_cast完毕 当一个较大的算术类型赋值给较小的类型时。能够用static_c 阅读全文
posted @ 2017-04-29 10:09 cxchanpin 阅读(269) 评论(0) 推荐(0)
摘要: ***********************************************声明*********************************************************************** 原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时 阅读全文
posted @ 2017-04-29 08:40 cxchanpin 阅读(593) 评论(0) 推荐(0)
上一页 1 ··· 133 134 135 136 137 138 139 140 141 ··· 152 下一页