上一页 1 ··· 22 23 24 25 26
摘要: 上篇文章讲述了创建线程的常用方式 本篇主要分析一下Thread和Runnable两种方式创建线程的区别及联系 ▶Thread类实现了Runable接口。 ▶都需要重写里面Run方法。 ▶Thread方式不支持多继承,Runnable方式支持多个实现 ▶Runnable更容易实现资源共享,能多个线程同 阅读全文
posted @ 2018-10-13 11:53 DiligentCoder 阅读(295) 评论(0) 推荐(0)
摘要: 本文目的 通过分析左连接(+)加号的写法和一些常用语法之间的联系,了解到Oracle 加号(+)的用法 分析步骤 1.首先创建测试表的结构 create table test_left_a ( a varchar2(50), b varchar2(50) ); create table test_l 阅读全文
posted @ 2018-10-11 18:22 DiligentCoder 阅读(3260) 评论(0) 推荐(0)
摘要: 线程与进程区别 进程是所有线程的集合,每一个线程是进程中的一条执行路径。 多线程创建方式 1.继承Thread类 重写run方法 public class CreateThread extends Thread { // run方法中编写 多线程需要执行的代码 public void run() { 阅读全文
posted @ 2018-10-07 23:12 DiligentCoder 阅读(164) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26