COM组件的多线程测试-Single模型(附录)

类别:VC语言 点击:0 评论:0 推荐:
附录1:跨线程调用输出结果 S1

异常信息

S2

Main Thread ID:2484

ThreadID:2440

对象Test1。所在线程ID:2440

        线程ID:2440,begin time: 16:05:42

ThreadID:2264

对象Test1。所在线程ID:2264

        线程ID:2264,begin time: 16:05:42

ThreadID:2352

对象Test1。所在线程ID:2352

        线程ID:2352,begin time: 16:05:42

ThreadID:2464

对象Test1。所在线程ID:2464

        线程ID:2464,begin time: 16:05:42

ThreadID:2412

对象Test1。所在线程ID:2412

        线程ID:2412,begin time: 16:05:42

        线程ID:2440,end time:   16:05:47

        线程ID:2264,end time:   16:05:47

        线程ID:2352,end time:   16:05:47

        线程ID:2464,end time:   16:05:47

        线程ID:2412,end time:   16:05:47

S3

Main Thread ID:2484

ThreadID:2248

对象Test1。所在线程ID:2248

        线程ID:2248,begin time: 16:08:44

ThreadID:2472

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:08:44

ThreadID:1260

对象Test1。所在线程ID:1260

        线程ID:1260,begin time: 16:08:44

ThreadID:2728

对象Test1。所在线程ID:2728

        线程ID:2728,begin time: 16:08:45

ThreadID:2488

对象Test1。所在线程ID:2488

        线程ID:2488,begin time: 16:08:45

        线程ID:2248,end time:   16:08:49

        线程ID:2472,end time:   16:08:49

        线程ID:1260,end time:   16:08:49

        线程ID:2728,end time:   16:08:50

        线程ID:2488,end time:   16:08:50

 

S4

Main Thread ID:2468

ThreadID:2264

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:10:02

ThreadID:2412

ThreadID:2440

ThreadID:2684

ThreadID:2396

        线程ID:2472,end time:   16:10:07

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:10:07

        线程ID:2472,end time:   16:10:12

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:10:12

        线程ID:2472,end time:   16:10:17

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:10:17

        线程ID:2472,end time:   16:10:22

对象Test1。所在线程ID:2472

        线程ID:2472,begin time: 16:10:22

        线程ID:2472,end time:   16:10:27

附录2:多线程中对象实例调用输出结果 输出结果T2:

Main Thread ID:1664

线程启动,ID:2400

线程启动,ID:1668

对象Test1。所在线程ID:2400

        线程ID:2400,begin time: 12:04:06

线程启动,ID:2284

线程启动,ID:2644

线程启动,ID:2672

        线程ID:2400,end time:   12:04:11

线程ID:1668,CreateInstance Failed,-2147221164

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 12:04:11

        线程ID:2668,end time:   12:04:16

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 12:04:16

        线程ID:2668,end time:   12:04:21

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 12:04:21

        线程ID:2668,end time:   12:04:26

 

输出结果T3

Main Thread ID:2472

线程启动,ID:2764

对象Test1。所在线程ID:2764

        线程ID:2764,begin time: 13:18:07

线程启动,ID:2664

线程启动,ID:2284

线程启动,ID:2068

线程启动,ID:1668

        线程ID:2764,end time:   13:18:12

对象Test1。所在线程ID:2788

      线程ID:2788,begin time: 13:18:12

        线程ID:2788,end time:   13:18:17

 

对象Test1。所在线程ID:2788

        线程ID:2788,begin time: 13:18:17

        线程ID:2788,end time:   13:18:22

对象Test1。所在线程ID:2788

        线程ID:2788,begin time: 13:18:22

线程ID:2788,end time:   13:18:33

输出结果T4

Main Thread ID:2776

线程启动,ID:2472

线程启动,ID:2256

线程启动,ID:1888

线程启动,ID:2704

线程启动,ID:2764

对象Test1。所在线程ID:2284

        线程ID:2284,begin time: 13:21:55

        线程ID:2284,end time:   13:22:00

对象Test1。所在线程ID:2284

        线程ID:2284,begin time: 13:22:00

        线程ID:2284,end time:   13:22:05

对象Test1。所在线程ID:2284

        线程ID:2284,begin time: 13:22:05

        线程ID:2284,end time:   13:22:10

对象Test1。所在线程ID:2284

        线程ID:2284,begin time: 13:22:10

        线程ID:2284,end time:   13:22:15

对象Test1。所在线程ID:2284

        线程ID:2284,begin time: 13:22:15

        线程ID:2284,end time:   13:22:20

输出结果T6

Main Thread ID:2776

线程启动,ID:2256

线程启动,ID:2668

对象Test1。所在线程ID:2256

        线程ID:2256,begin time: 13:25:34

线程启动,ID:2636

线程启动,ID:2472

线程启动,ID:2632

        线程ID:2256,end time:   13:25:39

线程ID:2668,CreateInstance Failed,-2147221164

对象Test1。所在线程ID:2704

        线程ID:2704,begin time: 13:25:39

        线程ID:2704,end time:   13:25:44

对象Test1。所在线程ID:2704

        线程ID:2704,begin time: 13:25:44

        线程ID:2704,end time:   13:25:49

对象Test1。所在线程ID:2704

        线程ID:2704,begin time: 13:25:49

        线程ID:2704,end time:   13:25:54

输出结果T7

Main Thread ID:952

线程启动,ID:2740

线程启动,ID:2636

对象Test1。所在线程ID:2740

        线程ID:2740,begin time: 13:42:12

线程启动,ID:2752

线程启动,ID:2344

线程启动,ID:2668

        线程ID:2740,end time:   13:42:17

线程ID:2636,CreateInstance Failed,-2147221164

对象Test1。所在线程ID:2632

        线程ID:2632,begin time: 13:42:17

        线程ID:2632,end time:   13:42:22

对象Test1。所在线程ID:2632

        线程ID:2632,begin time: 13:42:22

        线程ID:2632,end time:   13:42:27

对象Test1。所在线程ID:2632

        线程ID:2632,begin time: 13:42:27

        线程ID:2632,end time:   13:42:32

输出结果T8

Main Thread ID:952

线程启动,ID:2344

线程启动,ID:2740

线程启动,ID:1888

线程启动,ID:2632

线程启动,ID:2804

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:39:40

        线程ID:2624,end time:   13:39:45

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:39:45

        线程ID:2624,end time:   13:39:50

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:39:50

        线程ID:2624,end time:   13:39:55

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:39:55

        线程ID:2624,end time:   13:40:00

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:40:00

        线程ID:2624,end time:   13:40:05

输出结果T10

Main Thread ID:1888

线程启动,ID:2752

线程启动,ID:2780

线程启动,ID:2776

对象Test1。所在线程ID:2752

        线程ID:2752,begin time: 13:46:45

线程启动,ID:2636

线程启动,ID:2740

        线程ID:2752,end time:   13:46:50

线程ID:2776,CreateInstance Failed,-2147221164

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 13:46:51

        线程ID:2668,end time:   13:46:56

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 13:46:56

        线程ID:2668,end time:   13:47:01

对象Test1。所在线程ID:2668

        线程ID:2668,begin time: 13:47:01

        线程ID:2668,end time:   13:47:06

输出结果T11

Main Thread ID:1888

线程启动,ID:2780

线程启动,ID:2344

线程启动,ID:2804

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:49:40

线程启动,ID:2752

线程启动,ID:2400

        线程ID:2780,end time:   13:49:45

线程ID:2344,CreateInstance Failed,-2147221164

对象Test1。所在线程ID:2636

        线程ID:2636,begin time: 13:49:45

        线程ID:2636,end time:   13:49:50

对象Test1。所在线程ID:2636

        线程ID:2636,begin time: 13:49:50

        线程ID:2636,end time:   13:49:55

对象Test1。所在线程ID:2636

        线程ID:2636,begin time: 13:49:55

        线程ID:2636,end time:   13:50:00

输出结果T12

Main Thread ID:2776

线程启动,ID:2632

线程启动,ID:2624

线程启动,ID:2400

线程启动,ID:2752

线程启动,ID:2804

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:51:47

        线程ID:2780,end time:   13:51:52

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:51:52

        线程ID:2780,end time:   13:51:57

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:51:57

        线程ID:2780,end time:   13:52:02

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:52:02

        线程ID:2780,end time:   13:52:07

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 13:52:07

线程ID:2780,end time:   13:52:12

 

输出结果T14

Main Thread ID:2776

线程启动,ID:2624

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:55:17

线程启动,ID:1888

线程启动,ID:2396

线程启动,ID:2632

线程启动,ID:2644

        线程ID:2624,end time:   13:55:22

对象Test1。所在线程ID:2804

        线程ID:2804,begin time: 13:55:23

        线程ID:2804,end time:   13:55:28

对象Test1。所在线程ID:2804

        线程ID:2804,begin time: 13:55:28

        线程ID:2804,end time:   13:55:33

对象Test1。所在线程ID:2804

        线程ID:2804,begin time: 13:55:33

        线程ID:2804,end time:   13:55:38

对象Test1。所在线程ID:2804

        线程ID:2804,begin time: 13:55:38

        线程ID:2804,end time:   13:55:43

 

输出结果T15

Main Thread ID:2400

线程启动,ID:2752

对象Test1。所在线程ID:2752

        线程ID:2752,begin time: 13:58:30

线程启动,ID:2612

线程启动,ID:2644

线程启动,ID:2632

线程启动,ID:2396

        线程ID:2752,end time:   13:58:35

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:58:35

        线程ID:2624,end time:   13:58:40

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:58:40

        线程ID:2624,end time:   13:58:45

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:58:45

        线程ID:2624,end time:   13:58:50

对象Test1。所在线程ID:2624

        线程ID:2624,begin time: 13:58:50

        线程ID:2624,end time:   13:58:55

 

输出结果T16

Main Thread ID:2396

线程启动,ID:2584

线程启动,ID:1888

线程启动,ID:2400

线程启动,ID:2624

线程启动,ID:2264

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 14:00:29

        线程ID:2780,end time:   14:00:34

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 14:00:34

        线程ID:2780,end time:   14:00:39

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 14:00:39

        线程ID:2780,end time:   14:00:44

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 14:00:44

        线程ID:2780,end time:   14:00:49

对象Test1。所在线程ID:2780

        线程ID:2780,begin time: 14:00:49

        线程ID:2780,end time:   14:00:54

 

本文地址:http://com.8s8s.com/it/it1762.htm