1、定义:单例对象的类必须保证只有一个实例存在,全局有唯一接口访问。 2、分类: 懒汉方式:指全局的单例实例在第一次被使用时构建。 饿汉方式:指全局的单例实例在类装载时构建。 3、实现: (1)懒汉方式 缺点:非线程安全。当正在创建时,有线程来访问此时ins = nil就会再创建,单例类就会有多个实 ...
分类:
其他好文 时间:
2017-10-20 16:54:00
阅读次数:
197
具体操作步骤如下: C:> sqlplus 请输入用户名:sys 输入口令:sys as sysdba //注意:在口令这里输入 的密码后面必须要跟上 as sysdba 才可以。 SQL> alter user scott account unlock; 用户已更改. SQL> commit; 提 ...
分类:
数据库 时间:
2017-10-20 15:57:16
阅读次数:
235
1:解除锁定 handlers modules 两个模块的锁定 %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers %windir%\system32\inetsrv\appcmd unl ...
任何程序员应该记住的性能指标 Numbers Everyone Should Know L1 cache reference 0.5 ns Branch mispredict 5 ns L2 cache reference 7 ns Mutex lock/unlock 25 ns Main memo ...
分类:
其他好文 时间:
2017-10-11 21:06:22
阅读次数:
229
如何在Linux环境中使用PAM锁定多次登录失败用户修改如下文件:/etc/pam.d/sshd(远程ssh)/etc/pam.d/login(终端)内容如下:#%PAM-1.0
authrequiredpam_tally2.sodeny=3unlock_time=120even_deny_rootroot_unlock_time=1200
authrequiredpam_faillock.sopreauthsilentauditdeny..
分类:
系统相关 时间:
2017-10-10 16:29:47
阅读次数:
268
题意:给你一个原串和n个子串,问你这n个子串任意组合起来能不能使原串出现,串的长度为2。 Examples Input ya4ahoytoha Input Output YES Output Input hp2http Input Output NO Output Input ah1ha Input ...
分类:
其他好文 时间:
2017-10-07 14:44:31
阅读次数:
144
As technologies develop, manufacturers are making the process of unlocking a phone as user-friendly as possible. To unlock its new phone, Arkady's pet ...
分类:
其他好文 时间:
2017-10-06 20:06:12
阅读次数:
223
本来兴致勃勃的想乘着这一次上紫,于是很早很早的到了机房 但是好像并没有什么用,反而rating-=47 Codeforces Round #438(Div.1+Div.2) 今天就这样匆匆的总结一下,心情不好qaq 首先是 A.Bark to Unlock 启示:(1)不能直接把char数组进行比较 ...
分类:
其他好文 时间:
2017-10-06 15:26:31
阅读次数:
189
Codeforces Round #438 by Sberbank and Barcelona Bootcamp (Div. 1 + Div. 2 combined) codeforces 868 A. Bark to Unlock(水) 题意:所有字符串都是两个小写字母组成,先给一个密码字符串,然 ...
分类:
其他好文 时间:
2017-10-06 10:38:49
阅读次数:
156