<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[kworkers的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/kworkers</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; kworkers]]></copyright><item><title><![CDATA[containerlab学习笔记二 srl01实例测试]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/132816305</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/132816305</guid><author>kworkers</author><pubDate>Tue, 12 Sep 2023 19:03:11 +0800</pubDate><description><![CDATA[图片来自 containerlab 网站在计算机网络中，“Spine” 是指一种网络拓扑结构，通常用于数据中心网络或大型企业网络中，旨在提供高性能、可扩展性和可靠性。Spine 拓扑是一种层次化的网络设计，其中有两个主要层级：Spine 层和 Leaf 层。Spine 层： Spine 层包含一组核心交换设备（通常是高性能的交换机或路由器），它们相互连接，构建了一个全连接的网络。Spine 层的主要任务是路由数据包，它们之间的连接是高度冗余的，以确保网络的可靠性。]]></description><category></category></item><item><title><![CDATA[C语言 两个线程交替打印1-100]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130691604</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130691604</guid><author>kworkers</author><pubDate>Mon, 15 May 2023 20:00:27 +0800</pubDate><description><![CDATA[经典问题，两个锁，相互锁，注意先锁住一个，保证开始的顺序。]]></description><category></category></item><item><title><![CDATA[Go语言并发代码学习实例]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130566584</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130566584</guid><author>kworkers</author><pubDate>Mon, 08 May 2023 20:21:24 +0800</pubDate><description><![CDATA[本文主要是对 Generic Data Structures and Algorithms in Go 一书中的并发代码的学习。]]></description><category></category></item><item><title><![CDATA[Linux多线程笔记二]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130513563</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130513563</guid><author>kworkers</author><pubDate>Fri, 05 May 2023 19:36:28 +0800</pubDate><description><![CDATA[这段代码是一个线程不安全的代码，boy和girl两个线程都会去取钱，而且都取钱成功，需要改进，这里使用互斥锁进行改进。同一时刻只能有一个线程掌握互斥锁，拥有上锁资源的线程才能对共享资源进行访问。互斥锁mutex是一种简单的加锁方法，用来控制对共享资源的访问。其他想要访问共享资源的线程会被挂起，直到互斥锁释放。线程同步，指的是多个线程执行的互斥与先后的顺序。线程互斥，指的是线程执行的相互排斥。为账号加锁，用来解决线程不安全问题。]]></description><category></category></item><item><title><![CDATA[Linux多线程笔记一]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130432580</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130432580</guid><author>kworkers</author><pubDate>Fri, 28 Apr 2023 18:35:28 +0800</pubDate><description><![CDATA[用户级线程要绑定内核级线程运行，一个进程中的内核级线程会分配到固定的时间片，用户级线程分配的时间片以内核级线程为准。当cpu分配给线程的时间片用完后但线程没有执行完毕，此时线程会从运行状态返回到就绪状态，将cpu让给其它线程使用。thread_t 定义在 /usr/include/bits/pthreadtypes.h。1-5000的数组 两个线程分别计算1-2500 2501-5000 的和，然后相加。参数retval不能是在线程调用的栈上的指针，因为线程结束后就不存在了。Linux多线程笔记一。]]></description><category></category></item><item><title><![CDATA[Artificial Intelligence Programming with Python 笔记二]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130139930</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130139930</guid><author>kworkers</author><pubDate>Thu, 13 Apr 2023 20:53:03 +0800</pubDate><description><![CDATA[更先进的计算机，即具有图形处理功能的计算机单元（GPU）。这通常包括具有8个核的CPU、32GB RAM、32GB内存、32GB存储空间和32GB内存，1 TB硬盘，最重要的是NVIDIA GeForce RTX 1080 8GB GPU。一台预装GPU的电脑通常在3000美元左右，但如果你自己建造，你可以买到便宜得多的。带有FPGA的计算机现场可编程门阵列（FPGA）也是Altera和Xilinx是两个最知名的FPGA制造商。带GPU的计算机如果你想训练，可以为更高级的用户。]]></description><category></category></item><item><title><![CDATA[Artificial Intelligence Programming with Python 笔记一]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130119770</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130119770</guid><author>kworkers</author><pubDate>Thu, 13 Apr 2023 00:08:29 +0800</pubDate><description><![CDATA[Artificial Intelligence Programming with Python 一书，主要对当前火热的AI技术做了简单介绍，适合了解一下当下最流行的AI技术，没有很复杂的数学知识，有一些简单的代码，可以测试。本文主要摘录第一章对AI技术的简介和AI发展的历史。AI的历史，最早可以追溯到冯诺依曼的计算机。]]></description><category></category></item><item><title><![CDATA[Unix Domain Socket简介]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130118981</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130118981</guid><author>kworkers</author><pubDate>Wed, 12 Apr 2023 22:59:08 +0800</pubDate><description><![CDATA[也就是说，Unix Domain socket的性能优势足够显着，而且 API 与 TCP 套接字非常相似，因此很可能编写同时支持两者的代码（单个主机上的 Unix Domain socket，用于远程 IPC 的 TCP），而且难度很小。这些复杂性是为可靠的跨机器通信而设计的，但在单个主机上它们是不必要的负担。与主机间的进程通信不同，它不是通过 “IP地址 + TCP或UDP端口号” 的方式进程通信，而是使用 socket 类型的文件来完成通信，因此在稳定性、可靠性以及效率方面的表现都很不错。]]></description><category></category></item><item><title><![CDATA[Golang ReadLine BUFSIZ参数]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/130093294</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/130093294</guid><author>kworkers</author><pubDate>Tue, 11 Apr 2023 20:59:16 +0800</pubDate><description><![CDATA[参考：https://pkg.go.dev/bufio#Reader.ReadLine。如果超过就会提示"Error: input line too long"BUFSIZ 一般是8192。]]></description><category></category></item><item><title><![CDATA[cgroups: cgroup mountpoint does not exist: unknown报错处理]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/117446236</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/117446236</guid><author>kworkers</author><pubDate>Tue, 01 Jun 2021 16:30:51 +0800</pubDate><description><![CDATA[临时处理方法：
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd```

参考：https://github.com/moby/moby/issues/36016



]]></description><category></category></item><item><title><![CDATA[strace命令笔记]]></title><link>https://blog.youkuaiyun.com/kworkers/article/details/117418778</link><guid>https://blog.youkuaiyun.com/kworkers/article/details/117418778</guid><author>kworkers</author><pubDate>Mon, 31 May 2021 16:41:05 +0800</pubDate><description><![CDATA[strace 可以跟踪系统调用和程序收到的信号。

```

In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, it]]></description><category></category></item></channel></rss>