![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
文章平均质量分 55
HanWang~
这个作者很懒,什么都没留下…
展开
-
C语言 Pthread互斥锁
读写互斥#include<pthread.h>#include<stdio.h>int num=0; //临界资源void* writefunc(){ int i=0; for(;i<10;i++){ num += 1; printf("i'm write,write val is %d\n",num); }}void* readfunc(){ int j=0; for(;j<10;原创 2021-11-03 17:18:51 · 1098 阅读 · 0 评论 -
virtio: Towards a De-Facto Standard For Virtual I/O Devices
virtio: Towards a De-Facto Standard For Virtual I/O Devices翻译:virtio:迈向虚拟 I/O 设备的事实上的标准摘要Linux 内核目前至少支持 8 种不同的虚拟化系统:Xen、KVM、VMware 的 VMI、IBM 的 System p、IBM 的 System z、用户模式 Linux、lguest 和 IBM 的遗留 iSeries。 似乎会有更多这样的系统出现,直到最近,这些系统中的每一个都有自己的块、网络、控制台和其他具有不同功翻译 2021-10-13 18:11:25 · 637 阅读 · 0 评论 -
C 库函数
memset()描述#include <string.h>C 库函数 复制字符 c(一个无符号字符)到参数 str 所指向的字符串的前 n 个字符。声明void *memset(void *str, int c, size_t n)参数str – 指向要填充的内存块。c – 要被设置的值。该值以 int 形式传递,但是函数在填充内存块时是使用该值的无符号字符形式。n – 要被设置为该值的字符数。返回值该值返回一个指向存储区 str 的指针。用于初始化结构体变量。原创 2021-10-12 17:47:27 · 65 阅读 · 0 评论 -
C语言goto语句的使用
goto语句放在判断语句中,用于满足一定条件下的指定位置跳转执行。//goto语句 学习#include<stdio.h>#include<string.h>#include<stdlib.h>#include<windows.h>int main(){ int a = 34; if (a>0){ //修改符号(<, >)来测试goto语句 goto cleanup; } prin原创 2021-10-08 14:48:07 · 261 阅读 · 0 评论 -
C语言学习基础篇
TIPS//获取数组长度 声明之后直接获取int arr[10]={454,567,8,232,1,345,69,79,34,2243},len;len = sizeof(arr)/sizeof(arr[0]);原创 2021-07-05 16:01:27 · 114 阅读 · 0 评论