sleep(6) 更简单
只会干底层垒砖,没机会去做demo吧。演示出产品的真实工作顺序,异步多线索程序等0.1秒0.2秒和等6秒没有区别
所有跟帖:
• 靠,作POC的若都这编程水平,歇菜吧!最差的烙印程序猿看了都觉丢不起这人 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 21:22:06
• 您的架子都搭错了还demo 个啥呀!辣个time.sleep明显在故意blocking造假 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 21:28:34
• 多线程不懂?也是,只写过几行小程序。 -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 21:35:39
• 管数据库的IT民工,懂啥异构多线程 -奔流12959- ♂ (0 bytes) () 05/16/2024 postreply 21:39:20
• 您家的线程block6秒?您的pool里能撑几个blocked thread? -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 21:42:26
• 主线程是命令行程序,等的过程中不需要做别的事,不sleep干嘛? -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 21:49:25
• 笑喷,十个用户发要求造图像肿么办?排队等?一人六秒? -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 21:54:51
• 不知道这是演示? -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 21:57:51
• 工业界演示都是搭真实骨架,然后根据reqirements 往上填肉修改。您以为中学生project呀! -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 22:00:57
• 演示内容就是输入一段描述,等6秒,看结果。重复。几行前台代码完事。对那些喜欢画蛇添足的只能为他的老板悲哀。 -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 22:05:23
• 笑喷,您等六秒干嘛?加个“看结果”button不更flexible?哈哈 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 22:17:32
• 是不是对命令行程序有啥误解?还加button? -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 22:22:34
• 再敲个“看结果”命令很难么?哈哈 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 22:30:19
• 纯属脱了裤子放屁。等几秒就可以的事偏要去敲命令。手指头犯贱? -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 22:37:59
• 看得出来,您的水平就是几行代码,其它对您很难 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 22:20:39
• 很多印度程序员就像您这样,读了两门课,会Web UI 就觉得天下无敌。 -监考老师- ♂ (0 bytes) () 05/16/2024 postreply 22:24:43
• 比您hello world强,哈哈 -ncaa- ♂ (0 bytes) () 05/16/2024 postreply 22:32:00