My Love

I will be stronger


  • 主页

  • 关于我

  • 标签

  • 分类

  • 归档

dev-null

发表于 2021-03-20 | 分类于 翻译
字数统计: 2.1k | 阅读时长 ≈ 10

信息来源:阮一峰每周分享

文章来源:What Is /Dev/Null – an Introduction to the Bit Bucket


What Is /Dev/Null – an Introduction to the Bit Bucket /Dev/Null 是什么 - Bit Bucket 的简介

If you have used Linux for any amount of time, you most likely have come across the bit bucket, normally written as /dev/null. Understanding this special file, how it works, and it’s importance will become a invaluable tool. In this article, we will discuss what /dev/null is, how to use it, and why it earned the name bit bucket. We will also explore some examples of how it can be used in common practice.

如果你使用过 Linux,那么你和可能碰到过位桶,通常写为 dev/null。理解这个特殊的文件如何工作以及它的重要性,将会大有帮助。这篇文章中,我们将会探讨 dev/null 是什么,它是如何工作的,以及为什么它会有 bit buket 这个名字。同时我们也会展开几个例子,看一下它如何应用到平常的实践中。

阅读全文 »

pthread-programing-2

发表于 2021-03-08 | 分类于 linux
字数统计: 3.5k | 阅读时长 ≈ 14

接着上次的 pthread-programing-1,把 pthread 的其他内容补充完整。

阅读全文 »

network-address-translator

发表于 2021-02-02 | 分类于 linux
字数统计: 544 | 阅读时长 ≈ 2

由于工作需要,想在家也能登录公司的机器,公司机器是 Win10,装有 WSL2,目的是要在家里 Win10 的 WSL 上登录公司机器的 WSL,初步设想是通过 SSH 远程登录,带宽占用小,使用起来也比较稳定。

阅读全文 »

pthread-programing-1

发表于 2021-01-16 | 分类于 linux
字数统计: 3.7k | 阅读时长 ≈ 14

最近突然又接触了 生产者和消费者 问题,用到了多线程编程,这里总结一下。

在多处理器体系结构中,线程可用来实现并行性,对于 Unix 系统,IEEE POSIX 1003.1c 标准已指定了标准化的 C 语言线程编程接口,遵守该标准的实现成为 POSIX 线程或 Pthread。

阅读全文 »

java对象那些事儿

发表于 2020-12-13
字数统计: 2.6k | 阅读时长 ≈ 11
Java 对象的创建过程 半初始化 DLC 与 volatile 问题 指令重排 对象在内存中的布局 (对象与数组存储不同) 对象头具体包括什么(markword klasspointer synchronized 锁信息) 对象怎么定位?(直接、间接) 对象怎么分配?(栈上、线程本地、Eden、old) Object o = new Object() 在内存中占用多少字节? Java 对象创建过程用一个最简单的小程序说明: 1234567public class T ...
阅读全文 »
12…17
Jony Chiao

Jony Chiao

bulabula

84 日志
12 分类
22 标签
GitHub E-Mail
© 2017 — 2022 Jony Chiao
访问人数 访问总量 次