线程同步一大部分与原子访问(atomic access)有关, 所谓原子访问, 指的是一个线程在访问某个资源的同时能够保证没有其他线程会在同一时刻访问同一资源.假设编译器将g_x递增的那行代码时,生成了下面的汇编代码:MOV EAX, [g_x] ; Move the value in g_x i....
分类:
其他好文 时间:
2014-08-20 16:15:12
阅读次数:
164
server{listen80;server_namelocalhost;#charsetkoi8-r;#access_loglogs/host.access.logmain;location/{roothtml;indexindex.htmlindex.htm;location~.*\.(php|php5)?${fastcgi_passunix:/tmp/php-cgi.sock;fastcgi_indexindex.php;includefastcgi.conf;}auth_basic"Authorize..
分类:
其他好文 时间:
2014-08-20 14:21:52
阅读次数:
238
Question:Simple question: In Tomcat7, what's the difference between using extraResourcePaths and aliases to access an directory outside the applicatio...
分类:
数据库 时间:
2014-08-20 13:49:12
阅读次数:
275
a simple music player: Golang for the back-end, html5 and jQuery for the front-end...
分类:
Web程序 时间:
2014-08-20 10:31:26
阅读次数:
224
GO類似PHP,每行的結尾要加分號來結束,不同點在於GO對此並不強制,這一點又像javascript,另外GO的語句塊是用一對大括號來包裹的,但是go要求左大括號必須要在語句的結尾處,不能在行首出現左大括號,這是一個新的特性,至少在我接觸的編程語言中第一次遇到這種狀況.還有就是GO對大小寫敏感,這....
分类:
其他好文 时间:
2014-08-20 09:15:26
阅读次数:
215
关于access的谓词信息要格外注意,把自己当成优化器,要明白为什么谓词条件会这样影响访问路径。
没有索引就没有选择余地了,那谓词条件一定不会觉得访问路径,那只能是filter的了。对于filter,下面只有一个节点一般仅仅是起到过滤的作用,但是多余两
个节点基本上会涉及到被驱动表可能处于驱动表的循环中,一般可以通过改写sql的方式避免。...
分类:
数据库 时间:
2014-08-20 02:43:15
阅读次数:
257
from 《Go语言.云动力》 1 package main 2 3 import ( 4 "io" 5 "log" 6 "net/http" 7 "os" 8 "os/exec" 9 "strconv" 10 ) 11 12 v...
分类:
其他好文 时间:
2014-08-20 02:29:35
阅读次数:
200
今天在确认实习生不能帮忙搭建数据库后,自己根据业务需求尝试搭了一个小型access数据库。主要目的:储存历史月度数据,避免每次从公司数据库下载数据的麻烦,节省数据拉取时间。搭建了以acct id为主键的两种数据。1)客户信息,包括 由业务人员手工更新汇总的数据,如客户所在区域,商业信息等。 由机.....
分类:
数据库 时间:
2014-08-19 23:40:55
阅读次数:
355
最小时就都当69,最大时都当85
。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 5000
int av, n;
int s[N];
double go(int x){
if(x< 60)return...
分类:
其他好文 时间:
2014-08-19 20:54:05
阅读次数:
215
Google Book
Time Limit: 1000MS
Memory Limit: 32768KB
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You, the best hacker in the world, w...
分类:
其他好文 时间:
2014-08-19 20:50:15
阅读次数:
237