网站首页 站内搜索

搜索结果

查询Tags标签: threads,共有 40条记录
  • Redis 多线程网络模型源码解读

    Redis已经成为系统高性能缓存方案的事实标准,而Redis使用纯C语言编写,每个模块功能都划分的很清晰。最近也一直在看事件驱动库。 Redis 有多快? 根据官方的 benchmark,通常来说,在一台普通硬件配置的 Linux 机器上跑单个 Redis 实例,处理简单命令(时间复杂度 O(N) …

    2022/1/8 2:03:46 人评论 次浏览
  • Redis 多线程网络模型源码解读

    Redis已经成为系统高性能缓存方案的事实标准,而Redis使用纯C语言编写,每个模块功能都划分的很清晰。最近也一直在看事件驱动库。 Redis 有多快? 根据官方的 benchmark,通常来说,在一台普通硬件配置的 Linux 机器上跑单个 Redis 实例,处理简单命令(时间复杂度 O(N) …

    2022/1/8 2:03:46 人评论 次浏览
  • Extract Abends With ERROR OGG-00868 The number of Oracle redo threads (3) is not the same as the num

    Extract Abends With ERROR OGG-00868 The number of Oracle redo threads (3) is not the same as the number of checkpoint threads (4). (Doc ID 2301772.1) To BottomIn this Document Symptoms Cause Solution References APPLIES TO: Oracle GoldenGate - Ver…

    2021/12/18 19:49:43 人评论 次浏览
  • Extract Abends With ERROR OGG-00868 The number of Oracle redo threads (3) is not the same as the num

    Extract Abends With ERROR OGG-00868 The number of Oracle redo threads (3) is not the same as the number of checkpoint threads (4). (Doc ID 2301772.1) To BottomIn this Document Symptoms Cause Solution References APPLIES TO: Oracle GoldenGate - Ver…

    2021/12/18 19:49:43 人评论 次浏览
  • 游双-Linux高性能服务器编程笔记

    #define MAX_THREADS 1class Test { public:Test(): m_stop(false), s("Object exists.") {printf("ctor\n");m_threads = new pthread_t[MAX_THREADS];for (int i = 0; i < MAX_THREADS; i++) {pthread_create(m_threads + i, NULL, worker, this…

    2021/12/15 7:17:50 人评论 次浏览
  • 游双-Linux高性能服务器编程笔记

    #define MAX_THREADS 1class Test { public:Test(): m_stop(false), s("Object exists.") {printf("ctor\n");m_threads = new pthread_t[MAX_THREADS];for (int i = 0; i < MAX_THREADS; i++) {pthread_create(m_threads + i, NULL, worker, this…

    2021/12/15 7:17:50 人评论 次浏览
  • Java线程池理解

    线程池理解 线程池的构造函数:corePoolSize: the number of threads to keep in the pool, even if they are idle, unless {@code allowCoreThreadTimeOut} is set(线程池中活跃的线程数,即使他们是空闲的,没有任务可以执行的,也不会销毁,除非设置 allowCoreThrea…

    2021/11/2 14:10:00 人评论 次浏览
  • Java线程池理解

    线程池理解 线程池的构造函数:corePoolSize: the number of threads to keep in the pool, even if they are idle, unless {@code allowCoreThreadTimeOut} is set(线程池中活跃的线程数,即使他们是空闲的,没有任务可以执行的,也不会销毁,除非设置 allowCoreThrea…

    2021/11/2 14:10:00 人评论 次浏览
  • Linux c++ 试验-1 条件变量(condition_variable)

    1、示例 #include <iostream> // std::cout#include <thread> // std::thread#include <mutex> // std::mutex, std::unique_lock#include <condition_variable> // std::condition_variablestd::mutex mtx; // 全局互斥锁.std::condition_variab…

    2021/10/2 7:10:45 人评论 次浏览
  • Linux c++ 试验-1 条件变量(condition_variable)

    1、示例 #include <iostream> // std::cout#include <thread> // std::thread#include <mutex> // std::mutex, std::unique_lock#include <condition_variable> // std::condition_variablestd::mutex mtx; // 全局互斥锁.std::condition_variab…

    2021/10/2 7:10:45 人评论 次浏览
  • 【mysql】Mysql查看连接数(连接总数、活跃数、最大并发数)

    1 2 show variables like %max_connection%; 查看最大连接数 set global max_connections=1000; 重新设置最大连接数 1 2 3 4 5 6 7 8 9 10 11 mysql> show status like Threads%; +-------------------+-------+ | Variable_name | Value | +----------…

    2021/9/30 19:11:38 人评论 次浏览
  • 【mysql】Mysql查看连接数(连接总数、活跃数、最大并发数)

    1 2 show variables like %max_connection%; 查看最大连接数 set global max_connections=1000; 重新设置最大连接数 1 2 3 4 5 6 7 8 9 10 11 mysql> show status like Threads%; +-------------------+-------+ | Variable_name | Value | +----------…

    2021/9/30 19:11:38 人评论 次浏览
  • 多线程高并发编程

    1.countDownLatch 阻塞,countDown到零,结束阻塞继续执行。可以时一个线程countDown,可以是多个线程countDown public static void usingCountDownLatch(){Thread[] threads = new Thread[100];CountDownLatch latch = new CountDownLatch(threads.length);for (int i =…

    2021/9/4 20:07:45 人评论 次浏览
  • 多线程高并发编程

    1.countDownLatch 阻塞,countDown到零,结束阻塞继续执行。可以时一个线程countDown,可以是多个线程countDown public static void usingCountDownLatch(){Thread[] threads = new Thread[100];CountDownLatch latch = new CountDownLatch(threads.length);for (int i =…

    2021/9/4 20:07:45 人评论 次浏览
  • Java 线程与线程池进阶

    1. 线程的状态Java程序在运行过程中线程可能有6种状态:New:新创建状态; Runnable:可运行状态; Blocked:阻塞状态; Waiting:等待状态; Timed waiting:超时等待状态; Terminated:终止状态;2. 线程同步1. 加锁与条件变量Lock/Unlock:Java代码实现的工具类。 重…

    2021/8/28 17:06:11 人评论 次浏览
扫一扫关注最新编程教程