<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_51692487的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_51692487</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_51692487]]></copyright><item><title><![CDATA[【Linux】线程同步及基于BlockingQueue的生产者消费者模型]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/135033417</link><guid>https://blog.csdn.net/weixin_51692487/article/details/135033417</guid><author>weixin_51692487</author><pubDate>Sat, 16 Dec 2023 16:37:31 +0800</pubDate><description><![CDATA[在多线程编程中阻塞队列(Blocking Queue)是一种常用于实现生产者和消费者模型的数据结构。其与普通的队列区别在于，当队列为空时，从队列获取元素的操作将会被阻塞，直到队列中被放入了元素；当队列满时，往队列里存放元素的操作也会被阻塞，直到有元素被从队列中取出(以上的操作都是基于不同的线程来说的，线程在对阻塞队列进程操作时会被阻塞)3即3种关系，2即两种角色，1即一个交易场所。1、生产者VS生产者：竞争 互斥。3、生产者VS消费者：互斥、同步。2种角色：生产者和消费者。BlockQueue模块。]]></description><category></category></item><item><title><![CDATA[【Linux】面试常考可重入VS线程安全]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/135032456</link><guid>https://blog.csdn.net/weixin_51692487/article/details/135032456</guid><author>weixin_51692487</author><pubDate>Sat, 16 Dec 2023 14:48:17 +0800</pubDate><description><![CDATA[Linux线程安全和重入深度辨析]]></description><category></category></item><item><title><![CDATA[【Linux】线程互斥]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/135026673</link><guid>https://blog.csdn.net/weixin_51692487/article/details/135026673</guid><author>weixin_51692487</author><pubDate>Fri, 15 Dec 2023 23:22:00 +0800</pubDate><description><![CDATA[Linux线程互斥，互斥量，pthread_mutex_t,pthread_mutex_init,pthread_mutex_lock,pthread_mutex_unlock等接口的使用！]]></description><category></category></item><item><title><![CDATA[【C++】特殊类设计及单例模式]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/135009219</link><guid>https://blog.csdn.net/weixin_51692487/article/details/135009219</guid><author>weixin_51692487</author><pubDate>Fri, 15 Dec 2023 12:25:37 +0800</pubDate><description><![CDATA[C++特殊类设计，单例模式：实现一个只能定义一次的类；实现一个只能在堆上定义对象的类对象，实现一个只能在栈上定义对象的类等等]]></description><category></category></item><item><title><![CDATA[【Linux】线程控制：线程创建、终止、等待、分离等]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134952052</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134952052</guid><author>weixin_51692487</author><pubDate>Thu, 14 Dec 2023 13:34:24 +0800</pubDate><description><![CDATA[本文只要是对初学者快速上手Linux线程的操作，包括线程的创建pthread_create，线程的等待pthread_join,线程的终止pthread_exit，线程的分离ptrhead_detach等等,]]></description><category></category></item><item><title><![CDATA[【算法笔记】动态规划，使用最小花费爬楼梯，详细刨析。]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134950793</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134950793</guid><author>weixin_51692487</author><pubDate>Tue, 12 Dec 2023 15:41:01 +0800</pubDate><description><![CDATA[算法，动态规划，蓝桥杯，ACM。ICPC，使用最小花费爬楼梯]]></description><category></category></item><item><title><![CDATA[【Linux】线程的概念理解，从感知理解到全面深入]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134947982</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134947982</guid><author>weixin_51692487</author><pubDate>Tue, 12 Dec 2023 15:02:18 +0800</pubDate><description><![CDATA[Linux因为是用进程模拟的，所以Linux下不会给我们提供直接操作线程的接口，而是给我们提供，在同一个地址空间内部创建PCB的方法，分配资源给指定PCB的接口。线程是CPU调度的基本单位，承担进程资源的一部分的基本实体。CPU调度的时候只看PCB，每一个PCB曾经被指派过指向方法和数据，CPU可以直接的调度，线程属于进程的一部分。在伟大的”计算机哲学“操作系统这本书中，一般给出线程的概念为：是在进程内部运行的一个执行分支（执行流），属于进程的一部分，粒度要比进程更加细腻和轻量化。传统意义上的进程PCB。]]></description><category></category></item><item><title><![CDATA[【C++】模拟服务器开发过程中异常的使用]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134935643</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134935643</guid><author>weixin_51692487</author><pubDate>Mon, 11 Dec 2023 20:23:30 +0800</pubDate><description><![CDATA[【代码】【C++】模拟服务器开发过程中异常的使用。]]></description><category></category></item><item><title><![CDATA[【C++】C++异常语法、使用、规范、异常安全及异常的优缺点]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134920464</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134920464</guid><author>weixin_51692487</author><pubDate>Mon, 11 Dec 2023 12:03:25 +0800</pubDate><description><![CDATA[实际中我们可以可以去继承exception类实现自己的异常类。但是实际中很多公司像上面一样自己定义一套异常继承体系。因为C++标准库设计的不够好用。如果有一个块抛出一个异常，捕获异常的方法会使用 try 和 catch 关键字。try 块中放置可能抛出异常的代码，try 块中的代码被称为保护代码。C++ 提供了一系列标准的异常，定义在  中，我们可以在程序中使用这些标准的异常。异常是一种处理错误的方式，]]></description><category></category></item><item><title><![CDATA[【Linux】进程通信之命名管道mkfifo]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134867658</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134867658</guid><author>weixin_51692487</author><pubDate>Thu, 07 Dec 2023 23:47:19 +0800</pubDate><description><![CDATA[3. O_NONBLOCK disable：阻塞直到有相应进程为读而打开该FIFO。4. O_NONBLOCK enable：立刻返回失败，错误码为ENXIO。]]></description><category></category></item><item><title><![CDATA[【Linux】进程见通信之匿名管道pipe]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/134856937</link><guid>https://blog.csdn.net/weixin_51692487/article/details/134856937</guid><author>weixin_51692487</author><pubDate>Thu, 07 Dec 2023 16:21:36 +0800</pubDate><description><![CDATA[在Linux中，pipe() 是一个底层系统调用，用于创建管道(pipe)。#include//使用所需包含的头文件对于参数pipefd是一个两个元素的整型数组，它是一个传出参数，用于存放管道的读写文件描述符。其中pipefd[0]为管道读端，pipefd[1]为管道写端。这两个文件描述符可以像其他文件描述符一样进行读写操作。]]></description><category></category></item><item><title><![CDATA[【面试题笔记】C++继承和多态常见高频经典面试题]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133902432</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133902432</guid><author>weixin_51692487</author><pubDate>Wed, 18 Oct 2023 13:46:55 +0800</pubDate><description><![CDATA[C++继承和多态常见高频经典面试题。包含菱形继承，继承与组合，多态中的inline、static静态成员可以是虚函数吗？ 构造函数可以是虚函数吗？ 析构函数可以是虚函数吗？ 对象访问普通函数快还是虚函数更快？等问题]]></description><category></category></item><item><title><![CDATA[【C++笔记】多态的原理、单继承和多继承关系的虚函数表、 override 和 final、抽象类、重载、覆盖(重写)、隐藏(重定义)的对比]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133894619</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133894619</guid><author>weixin_51692487</author><pubDate>Wed, 18 Oct 2023 11:08:57 +0800</pubDate><description><![CDATA[【C++笔记】多态的原理、单继承和多继承关系的虚函数表、 override 和 final、抽象类、重载、覆盖(重写)、隐藏(重定义)的对比]]></description><category></category></item><item><title><![CDATA[【C++笔记】C++三大特性之多态的概念、定义及使用]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133689263</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133689263</guid><author>weixin_51692487</author><pubDate>Sun, 08 Oct 2023 20:51:50 +0800</pubDate><description><![CDATA[C++三大特性多态的概念，定义及使用详细刨析。以及一些常见的细节处理和注意事项，本文章对于多态初学者有很大益处！]]></description><category></category></item><item><title><![CDATA[【算法笔记】求1+2+3+...+n，要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句（A?B:C）。]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133345163</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133345163</guid><author>weixin_51692487</author><pubDate>Wed, 27 Sep 2023 11:50:21 +0800</pubDate><description><![CDATA[我们可以定义一个类Sum，在类中定义两个静态的成员变量_i和_ret，其中_i表示n值的更新，_ret来统计累加和。通过实例化n个对象最后就可以达到_ret=1+2+3+…+n，要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句（A?B:C）、位运算、递归、公式、sizeof。该题把我们的所有能用的方法都给限制死了，我们只能用一些的特殊的方法来做。不知道大家在思考的过程中考没考虑过C++中友元的特性和static修饰的变量的使用。]]></description><category></category></item><item><title><![CDATA[C++中的赋值运算符重载和类的那点事]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133279519</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133279519</guid><author>weixin_51692487</author><pubDate>Mon, 25 Sep 2023 20:47:50 +0800</pubDate><description><![CDATA[大家是否还记得我写过的详谈C++this指针一文，在类中是有一个隐藏的指针的，这里你看到的函数只有一个参数，但实际上是有两个参数的，隐藏的this指针和const Date& d。可以把类中的bool operator>(const Date& d)方法翻译成如下代码，来加深大家的理解。在c++中我们有时可能需要对类对象，进行算术运算和逻辑运算等操作，但是对于自定义类型的对象来说默认情况C++是不支持使用运算符的，如下面的日期类Date中所存在的问题，此时C++中引入了运算符重载，来解决这一问题。]]></description><category></category></item><item><title><![CDATA[Linux系统中MySQL库的操作，实操sql代码]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133212193</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133212193</guid><author>weixin_51692487</author><pubDate>Sat, 23 Sep 2023 18:11:05 +0800</pubDate><description><![CDATA[本文主要是对linux系统下MySQL库操作的总结，包含创建、删除、修改数据库，数据库的编码格式和校验格式以及数据库的恢复和备份。]]></description><category></category></item><item><title><![CDATA[C/C++连接数据库，包含完整代码。]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/133184799</link><guid>https://blog.csdn.net/weixin_51692487/article/details/133184799</guid><author>weixin_51692487</author><pubDate>Fri, 22 Sep 2023 21:06:38 +0800</pubDate><description><![CDATA[本篇文章意在简洁明了的在linux环境下使用C/C++连接远程数据库，并对数据库进行增删查改等操作。我所使用的环境是centos7，不要环境除环境配置外，代码是大同小异的。完整代码在最底部！！！]]></description><category></category></item><item><title><![CDATA[详细刨析Linux权限。包含权限的概念、权限的修改、粘滞位等等。]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/125450846</link><guid>https://blog.csdn.net/weixin_51692487/article/details/125450846</guid><author>weixin_51692487</author><pubDate>Fri, 24 Jun 2022 22:35:46 +0800</pubDate><description><![CDATA[既然在这里要讲解权限的相关知识，那么我想先谈谈什么是权限，在Linux中我对于权限的认识是一件事情是否允许被特定的人做。这句话可能还是比较抽象，下面举一个例子：某视频网站，如果是普通用户大家不可以观看VIP影视，但是VIP用户则可以观看，这里的能否观看VIP影视就是一件事情是否可以被特定的人做，而那个特定的人指的就是VIP用户。在Linux中关于权限的概念可以理解为不同的用户对事物属性的操作。在Linux中权限约束用户对文件操作时文件本身具有的天然的权限属性：r读权限、w写权限、x执行权限这些属性是否可以做]]></description><category></category></item><item><title><![CDATA[C++快速上手string的使用，刨析string常用成员函数，体验到C++的快乐。]]></title><link>https://blog.csdn.net/weixin_51692487/article/details/125156225</link><guid>https://blog.csdn.net/weixin_51692487/article/details/125156225</guid><author>weixin_51692487</author><pubDate>Tue, 07 Jun 2022 09:30:43 +0800</pubDate><description><![CDATA[string类的基本使用，string的构造，sting的运算符重载，迭代器，find，suustr，增删查改的使用等等]]></description><category></category></item></channel></rss>