05 2017 档案

摘要: 阅读全文
posted @ 2017-05-31 08:44 llluiop 阅读(91) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-05-22 08:27 llluiop 阅读(82) 评论(0) 推荐(0)
摘要:互斥量 Mutex 互斥量1. #include <pthread.h> 2. int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr); 3. 4. int pthread_mutex_ 阅读全文
posted @ 2017-05-15 08:49 llluiop 阅读(357) 评论(0) 推荐(0)
摘要:Rust 简介 使 Rust 显得独一无二的主要概念是“所有权”。考虑这个小例子:fn main() { let mut x = vec!["Hello", "world"];}这个程序创建了一个叫做x的变量绑定。这个绑定的值是一个Vec<T>,一个 vector,我们通过一个定义在标准库中的宏来创 阅读全文
posted @ 2017-05-08 08:20 llluiop 阅读(340) 评论(0) 推荐(0)
摘要:java的设计采用了单根结构,除去在GC上的好处之外,在泛型编程上(模板C++),因为所有的类型都继承自Object,因此利用向上塑型,我们是可以写出如下的代码: public class GenericTest { public static void main(String[] args) { 阅读全文
posted @ 2017-05-02 08:30 llluiop 阅读(212) 评论(0) 推荐(0)