我们有2台内部http服务(nginx): 201:这台服务器部署的服务是account.api.91160.com,这个服务是供前端页面调用; 202:这台服务器部署的服务是hdbs.api.91160.com, 这个服务是供前端页面调用; 近期发现,这2台服务器的网络连接中,TIME_WAIT ...
分类:
Web程序 时间:
2017-08-22 14:47:45
阅读次数:
369
Remmarguts' Date Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 30658 Accepted: 8378 Description "Good man never makes girls wait or break ...
分类:
其他好文 时间:
2017-08-22 10:34:10
阅读次数:
174
import pygame.mixer from tkinter import * sounds = pygame.mixer sounds.init() def wait_finish(channel): while channel.get_busy(): pass def button_clic... ...
分类:
其他好文 时间:
2017-08-22 01:35:37
阅读次数:
116
#region Async、Await static void Async() { Async1(); Thread.Sleep(1200); Console.WriteLine("Main Stop,Thread Id:" + Thread.CurrentThread.Man... ...
首先简单介绍一下APC队列和Alertable. 看看MSDN上的一段介绍(https://msdn.microsoft.com/en-us/library/ms810047.aspx): The system delivers most user-mode APCs when a thread u ...
分类:
其他好文 时间:
2017-08-20 14:51:16
阅读次数:
198
1. sqlite3_open 死锁 * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame #0: 0x0000000116e22c22 libsystem_kernel.dylib`__ps ...
分类:
数据库 时间:
2017-08-20 10:19:15
阅读次数:
238
我们常用wait(),notify()和notifyAll()方法来进行线程间通信。线程检查一个条件后就行进入等待状态,例如,在“生产者-消费者”模型中,生产者线程发现缓冲区满了就等待,消费者线程通过消费一个产品使得缓冲区有空闲并通知生产者线程。notify()或notifyAll()的调用给一个或 ...
分类:
其他好文 时间:
2017-08-19 17:09:31
阅读次数:
215
当线程执行请求synchronized方法或块时,monitor会设置几个虚拟逻辑数据结构来管理这些多线程。 请求的线程会首先被加入到线程排队队列中,线程阻塞,当某个拥有线程锁的线程unlock之后,则排队队列里的线程竞争上岗(synchronized是不公平竞争锁),如果运行的线程调用对象wait ...
分类:
编程语言 时间:
2017-08-19 17:00:55
阅读次数:
143
1、查看master的状态show master status; //Position不应该为0show processlist; //state状态应该为Has sent all binlog to slave; waiting for binlog to be updated2、查看slave状 ...
分类:
数据库 时间:
2017-08-18 22:28:26
阅读次数:
230
join():合并当前线程,相当于方法调用。 yield():让出cpu wait():使一个线程处于等待状态,并且释放所持有的对象的lock sleep():使一个正在运行的线程处于睡眠状态,是一个静态方法,调用此方法要捕捉InterruptedException异常 notify():唤醒一个处 ...
分类:
编程语言 时间:
2017-08-18 18:40:06
阅读次数:
196