{"id":21703306,"url":"https://github.com/xmuli/linuxexample","last_synced_at":"2025-04-12T15:08:15.885Z","repository":{"id":108919025,"uuid":"244386908","full_name":"XMuli/LinuxExample","owner":"XMuli","description":"Unix / Linux Example","archived":false,"fork":false,"pushed_at":"2022-09-07T13:43:34.000Z","size":48232,"stargazers_count":42,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T15:08:04.954Z","etag":null,"topics":["example","linux","unix"],"latest_commit_sha":null,"homepage":"https://xmuli.blog.csdn.net/article/details/105847532","language":"SWIG","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XMuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-02T14:09:11.000Z","updated_at":"2024-08-13T09:13:55.000Z","dependencies_parsed_at":"2023-04-23T16:17:13.997Z","dependency_job_id":null,"html_url":"https://github.com/XMuli/LinuxExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XMuli%2FLinuxExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XMuli%2FLinuxExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XMuli%2FLinuxExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XMuli%2FLinuxExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XMuli","download_url":"https://codeload.github.com/XMuli/LinuxExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586234,"owners_count":21128997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","linux","unix"],"created_at":"2024-11-25T21:30:38.076Z","updated_at":"2025-04-12T15:08:15.879Z","avatar_url":"https://github.com/XMuli.png","language":"SWIG","readme":"# LinuxExample\n\n`Linux / Unix` Example：文章中的所有例子均在 MacOS / UOS 上面编译成功。\n\n\u003cbr\u003e\n\n**💻：**  `UOS20 (Debian8+)` 📎 `gcc/g++ 8.3.0` 📎 `gdb 8.0`\n\n**💻：**  `MacOS 10.14.6 ` 📎 `gcc/g++ 9.2.0` 📎 `gdb 8.3`\n\n\u003cbr\u003e\n\n## 目录：\n\n### 服务器开发之 Linux 基础编程：\n\n##### gcc/g++:\n\n- [在MacOS上面通过brew命令安装gcc编译器集](https://blog.csdn.net/qq_33154343/article/details/104639656) \n- [gcc和g++的区别，编译.c和.cpp文件的区别](https://blog.csdn.net/qq_33154343/article/details/104645129) \n- [gcc工作流程：预处理，编译，汇编，链接](https://blog.csdn.net/qq_33154343/article/details/104693603)\n- [Linux下使用gcc生成静态库.a和调用（图文并茂，坑已踩完）](https://blog.csdn.net/qq_33154343/article/details/104692241) \n- [Linux下使用gcc生成动态库.so和调用（图文并茂，坑已踩完）](https://blog.csdn.net/qq_33154343/article/details/104692370) \n- [在Linux中，编写入门的makefile文件，然后逐渐迭代](https://blog.csdn.net/qq_33154343/article/details/104758512)\n\n\u003cbr\u003e\n\n##### gdb:\n\n- [ 在MacOS10.14.6安装最新gdb8.3的详细教程，含可能遇到的所有坑(网上最新教程)](https://blog.csdn.net/qq_33154343/article/details/104784641)\n- [gdb调试器的使用，初探全貌](https://blog.csdn.net/qq_33154343/article/details/104904798)\n\n\u003cbr\u003e\n\n##### 程序运行原理，文件描述符，PCB：\n\n- [Linux中文件操作，软硬链接ln，用户权限chmod、chown，文件查找和检索find、grep，压缩gz，bz2](https://blog.csdn.net/qq_33154343/article/details/105010222)\n- [Linux中虚拟地址空间、pcb、文件描述符、C库函数工作流程、标准库和系统库函数区别](https://blog.csdn.net/qq_33154343/article/details/105029261)\n- [Linux中man手册，阻塞和非阻塞，stat，文件操作和遍历，文件描述符复制dup()](https://blog.csdn.net/qq_33154343/article/details/105031987) \n\n\u003cbr\u003e\n\n### 服务器开发之 Linux 系统编程：\n\n##### 进程间通信：\n\n- [Linux中fork创建兄弟子进程，验证进程之间全局变量不共享，exec函数族](https://blog.csdn.net/qq_33154343/article/details/105157044)\n- [Linux中孤儿进程，僵尸进程，进程回收wait、waitpid函数](https://blog.csdn.net/qq_33154343/article/details/105164215)\n- [父子进程、兄弟子进程之间通信方式--匿名管道pipe(适用于有血缘关系的进程)](https://blog.csdn.net/qq_33154343/article/details/105254078)\n- [Linux中普通的进程间通信方式--有名管道fifo(适用于无血缘关系的进程)](https://xmuli.blog.csdn.net/article/details/105266919) \n- [Linux中进程间的通信方式--内存映射区mmap()](https://xmuli.blog.csdn.net/article/details/105322927) \n\n\u003cbr\u003e\n\n##### 信号和守护进程：\n\n- [Linux中系统信号初识，和函数kill，raise，abort，alarm，setitimer](https://xmuli.blog.csdn.net/article/details/105357886) \n- [Linux中未决信号集和阻塞信号集的状态关系sigaddset，以及捕捉信号函数](https://xmuli.blog.csdn.net/article/details/105448914) \n- [Linux中创建守护进程setsid()](https://xmuli.blog.csdn.net/article/details/105453850)\n\n\u003cbr\u003e\n\n##### 多线程：\n\n- [Linux中创建多线程实例pthread_create()](https://xmuli.blog.csdn.net/article/details/105546234) \n- [Linux中多线程操作函数pthread_exit()、pthread_jion()、pthread_detach()、pthread_cancel()](https://xmuli.blog.csdn.net/article/details/105620043) \n- [Linux中使用使用互斥量(锁)Mutex来操持多线程同步执行pthread_mutex_lock()](https://xmuli.blog.csdn.net/article/details/105779111) \n- [Linux中原子操作，死锁原因以及解决方法，读写锁的属性和函数使用pthread_rwlock_wrlock()](https://xmuli.blog.csdn.net/article/details/105800949) \n- [Linux中多线程使用条件变量阻塞线程，和pthread_cond_wait()函数使用](https://xmuli.blog.csdn.net/article/details/105885580)\n- [Linux中多线程使用信号量(信号灯)，和sem_wait()函数使用](https://xmuli.blog.csdn.net/article/details/105885816)\n\n\u003cbr\u003e\n\n### 服务器开发之 Linux 网络编程：\n\n感觉基础的网络理论基础知识已会，写过一些实战项目的代码，可以参考 [QtExamples](https://github.com/xmuli/QtExamples) 第十章部分\n\n后面深入底层网络完成，有空再整理文章，\n\n待续..\n\n  \n\n  \u003cbr\u003e\n\n  \u003cbr\u003e\n\n附: [Linux 高清图谱.jpg](./Linux.jpg)\n\n\u003cimg src=\"Linux.jpg\" width=\"100%\"/\u003e\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmuli%2Flinuxexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmuli%2Flinuxexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmuli%2Flinuxexample/lists"}