码迷,mamicode.com
首页 >  
搜索关键字:dispatch source    ( 19300个结果
Learn Branch Prediction From SimpleScalar Source (1)
作为一名CSer,最好的学习方式之一无疑是tracing code,看源代码——不知你此时是否与我一样想起了Linus那句名言「talk is cheap, show me the fucking code!」?可是对计算机体系结构来说,很多技术直接是由硬件实现的,因而也被蒙上一层神秘的面纱。好在还...
分类:其他好文   时间:2014-05-21 23:46:56    阅读次数:307
MySQL GTIDs(global transaction identifiers)
1、如何定义和生成GTIDs唯一性:在所有主从库都是唯一的,由二元组构成GTID = source_id:transaction_idsource_id标记主库的1.1 server_uuid获取server_uuid的方式a、判断data_dir/auto.cnf文件是否存在,如果存在返回b、不存...
分类:数据库   时间:2014-05-21 23:11:36    阅读次数:459
连接数据库
using System.Data.SqlClient;static void Main(string[] args) { string connString = @"Data Source=.; Initial Catalog=lh0216; User ID=s...
分类:数据库   时间:2014-05-21 21:37:07    阅读次数:369
2C01-View-Layout-Animation-Grid-Fade
介绍一个grid layout 顺序显示的代码 LayoutAnimation1.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th...
分类:其他好文   时间:2014-05-21 16:58:47    阅读次数:214
GCD dispatch_semaphore
当我们在处理一系列线程的时候,当数量达到一定量,在以前我们可能会选择使用NSOperationQueue来处理并发控制,但如何在GCD中快速的控制并发呢?答案就是dispatch_semaphore.   信号量是一个整形值并且具有一个初始计数值,并且支持两个操作:信号通知和等待。当一个信号量被信号通知,其计数会被增加。当一个线程在一个信号量上等待时,线程会被阻塞(如果有必要的话),直至计数器大...
分类:其他好文   时间:2014-05-21 09:51:27    阅读次数:258
2C02-View-Layout-Animation-list-Cascade
描述list layout item有上倒下依次显示的代码实现形式 LayoutAnimation2.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
分类:其他好文   时间:2014-05-21 09:02:15    阅读次数:250
2C03-View-Layout-Animation-list-Reverse-Order
介绍list  item倒序显示 LayoutAnimation3.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
分类:其他好文   时间:2014-05-21 08:25:44    阅读次数:278
执行SQL存储脚本
using System.Data.SqlClient;static void Main(string[] args) { string connString = @"Data Source=.; Initial Catalog=lh0216; User ID=s...
分类:数据库   时间:2014-05-21 04:18:08    阅读次数:388
[转]BSD编码规范
转自一个命令(man 9 style)挺好的文档。STYLE(9) FreeBSD Kernel Developer’s Manual STYLE(9)NAME style — kernel source file style guideDESCRIPTION This file specifies...
分类:其他好文   时间:2014-05-21 03:53:34    阅读次数:415
Ubuntu12.04 64bit版本下载Android源码完整教程
首先去官网http://source.android.com/source/initializing.html可以看到完整的安装教程。不过一般情况下,按照这个教程是无法一步到位的,因为中途肯定会遇到很多问题。这里我把我遇到的问题以及相应的解决方案总结一下: 1、sudo apt-get inst.....
分类:移动开发   时间:2014-05-21 03:15:03    阅读次数:392
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!