V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  chenshun00  ›  全部回复第 18 页 / 共 21 页
回复总数  410
1 ... 10  11  12  13  14  15  16  17  18  19 ... 21  
@arthas2234 嘿嘿,接口文档都可以在写代码注释的时候完成了,现在就在做这块的事,解放大家.
2021 年 1 月 25 日
回复了 zealinux 创建的主题 Java 想知道 OOM killed 的是哪个 Java 的命令参数?
@qfdk 你这个是 OOM,这种属于操作系统的 OOM Kill 是不行的,从虚拟机迁移到 K8s 特别多.. , 关键是自己的技术水平还解决不了它
http,都需要的,如果 http 都很了解,其他方面应该也不会差..
2021 年 1 月 25 日
回复了 Cbdy 创建的主题 Java 求一个 Java 面试题的最佳实践
@mawerss1 好像偏题了
2021 年 1 月 25 日
回复了 Cbdy 创建的主题 Java 求一个 Java 面试题的最佳实践
public static void main(String[] args) {

final Object xx1 = new Object();
final Object xx2 = new Object();
final Object xx3 = new Object();
Thread a = new Thread(() -> {

try {
synchronized (xx1) {
xx1.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
int a1 = 0;
while (a1 < 100) {
System.out.print("a");
a1++;

synchronized (xx2) {
xx2.notify();
}
try {
synchronized (xx1) {
xx1.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
a.setDaemon(true);
a.setName("aaa");
Thread b = new Thread(() -> {
try {
synchronized (xx2) {
xx2.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
int b1 = 0;
while (b1 < 100) {
System.out.print("b");
b1++;
synchronized (xx3) {
xx3.notify();
}
try {
synchronized (xx2) {
xx2.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
b.setDaemon(true);
b.setName("bbb");
Thread c = new Thread(() -> {
try {
synchronized (xx3) {
xx3.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
int c1 = 0;
while (c1 < 100) {
System.out.println("c");
c1++;
synchronized (xx1) {
xx1.notify();
}
try {
synchronized (xx3) {
xx3.wait();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
c.setDaemon(true);
c.setName("ccc");
a.start();
b.start();
c.start();

synchronized (xx1) {
xx1.notify();
}

try {
Thread.sleep(100L);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

}
在实习的时候也整过一次,那个时候数据库是 500W 条数据,但是不是一个很看中的业务,由于硬件有问题 && 我没有做做参数检验,导致了全表更新 (500w 更新),注意这个更新操作非常的频繁,直接把整个库拖挂了,然后领导电话直接过来,你是不是做什么了,RDS 直接 GG,后续做参数校验,然后就去做菜了.
回到这个问题
A 肯定考虑不周,最起码没有去想过哪些参数可传或可不传,但是他自己用肯定没有问题,因为他写的,他知道怎么去避坑,或者说在他的场景下永远不可能出现全表的情况,sql 的超时也没有设置,千万级别的表加个 timeout 不过分吧
B 业务就是这么做的. 他本身是不知道 A 的实现的,也没有做参数限制,不知道有没有和 A 沟通,反正我调用别人的服务就是问一下,肯定不知道内部实现.

后续想知道你们是怎么处理的 :)))
2021 年 1 月 3 日
回复了 yagamil 创建的主题 程序员 有哪些本地代码库搜索利器
grep -nr "xxx" .
2021 年 1 月 2 日
回复了 yRebelHero 创建的主题 程序员 2020 年你最想推荐的一本技术书和非技术书是啥?
非技术: 原则
技术 UNIX 网络变成
2020 年 12 月 31 日
回复了 xutao881 创建的主题 2020 一个词总结一下我的 2020
成长
Q: NzA5NDM2NDI2 , 回答当然是可以的,但是希望你也是经过思考的. 不然就没有意义了
2020 年 12 月 20 日
回复了 phpxiaowangzi 创建的主题 问与答 想咨询大家关于家族聚会吃饭的问题
树欲静而风不止
2020 年 12 月 13 日
回复了 Joker123456789 创建的主题 Java 关于 NIO 网络编程的一个问题
NIO 开发 http,你这样解析 http 的呀,可以先链接一下 netty 的 http 协议是怎么做的。 这样的读取肯定是不行的.
2020 年 12 月 8 日
回复了 duxiansen 创建的主题 程序员 百度搞了个开发者搜索 https://kaifa.baidu.com
不好意思,我看错了,对不起,鞠躬
2020 年 12 月 8 日
回复了 duxiansen 创建的主题 程序员 百度搞了个开发者搜索 https://kaifa.baidu.com
PHP: Hypertext Preprocessorwww.php.net
翻译此页
PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from ...
‎Downloads · ‎PHP For Windows · ‎PHP :: Bugs · ‎My PHP.net

Downloads - PHPwww.php.net › downloads
翻译此页
GPG Keys. The releases are tagged and signed in the PHP Git Repository. The following official GnuPG keys of the current PHP Release Manager can be used to ...

PHP 教程| 菜鸟教程 www.runoob.com › php › php-tutorial
PHP 教程 PHP 是一种创建动态交互性站点的强有力的服务器端脚本语言。PHP 是免费的,并且使用非常广泛。同时,对于像微软 ASP 这样的竞争者来说,PHP ...
‎PHP 简介 · ‎PHP 表单 · ‎PHP 文件上传 · ‎PHP MySQL 简介

PHP - Wikipediaen.wikipedia.org › wiki › PHP
翻译此页
PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf ...
Implementation language:C (primarily; some c...‎
Preview release:8.0.0 Release Candidate 4 / ...
Stable release:7.4.12 / 29 October 2020; 16 d...
Developer:The PHP Development Team, Zend ...‎

PHP - 维基百科,自由的百科全书 zh.wikipedia.org › PHP
转为简体网页
PHP (全称:PHP:Hypertext Preprocessor,即“PHP:超文本预处理器”)是一种开源的通用计算机脚本语言,尤其适用于网络开发并可嵌入 HTML 中使用。
設計者: 拉斯姆斯·勒多夫
穩定版本:7.4.12 ( 2020 年 10 月 29 日,​11 天前 )
编程范型: 物件導向、指令式編程
型態系統: 動態、弱型別
‎開發歷史 · ‎語法 · ‎PHP 相關資源 · ‎PHP 編譯器

PHP Tutorial - W3Schoolswww.w3schools.com › php › DEFAULT
翻译此页
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to ...
2020 年 12 月 8 日
回复了 duxiansen 创建的主题 程序员 百度搞了个开发者搜索 https://kaifa.baidu.com
不能贴图,
@nightwitch 你确定用的 google 搜索? 第一页
PHP: Hypertext Preprocessor
2020 年 12 月 7 日
回复了 asanelder 创建的主题 程序员 [求助] Java 对比字节码文件是不是由源码编译出来的
已经知道了字节码,使用 jd-gui 等反编译工具随机挑选 n 个文件进行对比.
2020 年 12 月 5 日
回复了 Elethom 创建的主题 职场话题 国内稍大一点的公司有不卡学历的吗?
还是键盘太便宜了
1 ... 10  11  12  13  14  15  16  17  18  19 ... 21  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1017 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 22:50 · PVG 06:50 · LAX 14:50 · JFK 17:50
♥ Do have faith in what you're doing.