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

类别:VC语言 点击:0 评论:0 推荐:
对象跨线程调用附录 S1

忽略

S2

Main Thread ID:2328

ThreadID:2564

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 15:41:13

ThreadID:2680

对象Test2。所在线程ID:2680

        线程ID:2680,begin time: 15:41:13

ThreadID:2800

对象Test2。所在线程ID:2800

        线程ID:2800,begin time: 15:41:13

ThreadID:2488

对象Test2。所在线程ID:2488

        线程ID:2488,begin time: 15:41:13

ThreadID:2396

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:41:13

        线程ID:2564,end time:   15:41:18

        线程ID:2680,end time:   15:41:18

        线程ID:2800,end time:   15:41:18

        线程ID:2488,end time:   15:41:18

        线程ID:2396,end time:   15:41:18

 

S3

Main Thread ID:2440

ThreadID:2264

对象Test2。所在线程ID:2264

        线程ID:2264,begin time: 15:49:26

ThreadID:2728

对象Test2。所在线程ID:2728

        线程ID:2728,begin time: 15:49:26

ThreadID:2488

对象Test2。所在线程ID:2488

        线程ID:2488,begin time: 15:49:26

ThreadID:2800

对象Test2。所在线程ID:2800

        线程ID:2800,begin time: 15:49:27

ThreadID:2680

对象Test2。所在线程ID:2680

        线程ID:2680,begin time: 15:49:27

        线程ID:2264,end time:   15:49:31

        线程ID:2728,end time:   15:49:31

        线程ID:2488,end time:   15:49:31

        线程ID:2800,end time:   15:49:32

        线程ID:2680,end time:   15:49:32

S4

Main Thread ID:2440

ThreadID:2248

对象Test2。所在线程ID:2328

        线程ID:2328,begin time: 15:51:40

ThreadID:2464

ThreadID:2404

ThreadID:2412

ThreadID:1132

        线程ID:2328,end time:   15:51:45

对象Test2。所在线程ID:2328

        线程ID:2328,begin time: 15:51:45

       线程ID:2328,end time:   15:51:50

对象Test2。所在线程ID:2328

        线程ID:2328,begin time: 15:51:51

        线程ID:2328,end time:   15:51:56

对象Test2。所在线程ID:2328

        线程ID:2328,begin time: 15:51:56

        线程ID:2328,end time:   15:52:01

对象Test2。所在线程ID:2328

        线程ID:2328,begin time: 15:52:01

        线程ID:2328,end time:   15:52:06

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

Main Thread ID:2648

线程启动,ID:2488

线程启动,ID:2728

对象Test2。所在线程ID:2488

        线程ID:2488,begin time: 14:37:10

对象Test2。所在线程ID:2728

        线程ID:2728,begin time: 14:37:10

线程启动,ID:2724

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 14:37:10

线程启动,ID:2748

对象Test2。所在线程ID:2748

        线程ID:2748,begin time: 14:37:10

线程启动,ID:2612

对象Test2。所在线程ID:2612

        线程ID:2612,begin time: 14:37:10

        线程ID:2488,end time:   14:37:15

        线程ID:2728,end time:   14:37:15

        线程ID:2724,end time:   14:37:15

        线程ID:2748,end time:   14:37:15

        线程ID:2612,end time:   14:37:15

 

输出T3

Main Thread ID:2648

线程启动,ID:2728

对象Test2。所在线程ID:2728

        线程ID:2728,begin time: 14:39:42

线程启动,ID:2284

对象Test2。所在线程ID:2284

        线程ID:2284,begin time: 14:39:42

线程启动,ID:2484

对象Test2。所在线程ID:2484

        线程ID:2484,begin time: 14:39:42

线程启动,ID:2488

对象Test2。所在线程ID:2488

        线程ID:2488,begin time: 14:39:42

线程启动,ID:2800

对象Test2。所在线程ID:2800

        线程ID:2800,begin time: 14:39:42

        线程ID:2728,end time:   14:39:47

        线程ID:2284,end time:   14:39:47

        线程ID:2484,end time:   14:39:47

        线程ID:2488,end time:   14:39:47

        线程ID:2800,end time:   14:39:47

输出T4

Main Thread ID:2648

线程启动,ID:2284

线程启动,ID:1132

线程启动,ID:2724

线程启动,ID:2728

线程启动,ID:2344

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 14:42:36

        线程ID:2564,end time:   14:42:41

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 14:42:41

        线程ID:2564,end time:   14:42:46

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 14:42:46

        线程ID:2564,end time:   14:42:51

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 14:42:51

        线程ID:2564,end time:   14:42:56

对象Test2。所在线程ID:2564

        线程ID:2564,begin time: 14:42:56

        线程ID:2564,end time:   14:43:01

输出T5 输出T6

Main Thread ID:2564

线程启动,ID:2728

线程启动,ID:1972

对象Test2。所在线程ID:1972

        线程ID:1972,begin time: 14:47:06

对象Test2。所在线程ID:2728

        线程ID:2728,begin time: 14:47:06

线程启动,ID:2712

对象Test2。所在线程ID:2712

        线程ID:2712,begin time: 14:47:06

线程启动,ID:2344

对象Test2。所在线程ID:2344

        线程ID:2344,begin time: 14:47:06

线程启动,ID:2484

对象Test2。所在线程ID:2484

        线程ID:2484,begin time: 14:47:06

        线程ID:1972,end time:   14:47:11

        线程ID:2728,end time:   14:47:11

        线程ID:2712,end time:   14:47:11

        线程ID:2344,end time:   14:47:11

        线程ID:2484,end time:   14:47:11

输出T7

Main Thread ID:2564

线程启动,ID:1972

线程启动,ID:2472

对象Test2。所在线程ID:2472

        线程ID:2472,begin time: 14:49:11

对象Test2。所在线程ID:1972

        线程ID:1972,begin time: 14:49:11

线程启动,ID:2644

对象Test2。所在线程ID:2644

        线程ID:2644,begin time: 14:49:11

线程启动,ID:2728

对象Test2。所在线程ID:2728

        线程ID:2728,begin time: 14:49:11

线程启动,ID:2604

对象Test2。所在线程ID:2604

        线程ID:2604,begin time: 14:49:11

        线程ID:1972,end time:   14:49:16

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

        线程ID:2644,end time:   14:49:16

        线程ID:2728,end time:   14:49:16

        线程ID:2604,end time:   14:49:16

输出T8

Main Thread ID:2564

线程启动,ID:1132

线程启动,ID:2472

线程启动,ID:2724

线程启动,ID:2712

线程启动,ID:1972

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 14:55:30

        线程ID:2396,end time:   14:55:35

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 14:55:35

        线程ID:2396,end time:   14:55:40

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 14:55:40

        线程ID:2396,end time:   14:55:45

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 14:55:45

        线程ID:2396,end time:   14:55:50

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 14:55:50

        线程ID:2396,end time:   14:55:55

输出T9 输出T10

Main Thread ID:2724

线程启动,ID:2280

线程启动,ID:2508

对象Test2。所在线程ID:2508

        线程ID:2508,begin time: 14:59:33

对象Test2。所在线程ID:2280

        线程ID:2280,begin time: 14:59:33

线程启动,ID:2484

对象Test2。所在线程ID:2484

        线程ID:2484,begin time: 14:59:33

线程启动,ID:2472

对象Test2。所在线程ID:2472

        线程ID:2472,begin time: 14:59:33

线程启动,ID:2712

对象Test2。所在线程ID:2712

        线程ID:2712,begin time: 14:59:33

        线程ID:2280,end time:   14:59:38

        线程ID:2508,end time:   14:59:38

        线程ID:2484,end time:   14:59:38

        线程ID:2472,end time:   14:59:38

        线程ID:2712,end time:   14:59:38

输出T11

Main Thread ID:2472

线程启动,ID:2680

线程启动,ID:2712

对象Test2。所在线程ID:2712

        线程ID:2712,begin time: 15:01:28

对象Test2。所在线程ID:2680

        线程ID:2680,begin time: 15:01:28

线程启动,ID:1972

对象Test2。所在线程ID:1972

        线程ID:1972,begin time: 15:01:29

线程启动,ID:2068

对象Test2。所在线程ID:2068

        线程ID:2068,begin time: 15:01:29

线程启动,ID:2488

对象Test2。所在线程ID:2488

        线程ID:2488,begin time: 15:01:29

        线程ID:2712,end time:   15:01:33

        线程ID:2680,end time:   15:01:34

        线程ID:1972,end time:   15:01:34

        线程ID:2068,end time:   15:01:34

        线程ID:2488,end time:   15:01:34

输出T12

Main Thread ID:2484

线程启动,ID:2068

线程启动,ID:2712

线程启动,ID:1972

线程启动,ID:2680

线程启动,ID:2268

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 15:02:51

        线程ID:2724,end time:   15:02:56

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 15:02:56

        线程ID:2724,end time:   15:03:01

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 15:03:01

        线程ID:2724,end time:   15:03:06

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 15:03:06

        线程ID:2724,end time:   15:03:11

对象Test2。所在线程ID:2724

        线程ID:2724,begin time: 15:03:11

        线程ID:2724,end time:   15:03:16

 

输出T13 输出T14

Main Thread ID:2488

线程启动,ID:2068

对象Test2。所在线程ID:2068

        线程ID:2068,begin time: 15:05:28

线程启动,ID:2680

对象Test2。所在线程ID:2680

        线程ID:2680,begin time: 15:05:28

线程启动,ID:2268

对象Test2。所在线程ID:2268

        线程ID:2268,begin time: 15:05:28

线程启动,ID:2712

对象Test2。所在线程ID:2712

        线程ID:2712,begin time: 15:05:28

线程启动,ID:1972

对象Test2。所在线程ID:1972

        线程ID:1972,begin time: 15:05:28

        线程ID:2068,end time:   15:05:33

        线程ID:2680,end time:   15:05:33

        线程ID:2268,end time:   15:05:33

        线程ID:2712,end time:   15:05:33

        线程ID:1972,end time:   15:05:33

输出T15

Main Thread ID:2488

线程启动,ID:2680

对象Test2。所在线程ID:2680

        线程ID:2680,begin time: 15:07:53

线程启动,ID:2368

对象Test2。所在线程ID:2368

        线程ID:2368,begin time: 15:07:53

线程启动,ID:2284

对象Test2。所在线程ID:2284

        线程ID:2284,begin time: 15:07:53

线程启动,ID:2068

对象Test2。所在线程ID:2068

        线程ID:2068,begin time: 15:07:53

线程启动,ID:2640

对象Test2。所在线程ID:2640

        线程ID:2640,begin time: 15:07:53

        线程ID:2680,end time:   15:07:58

        线程ID:2368,end time:   15:07:58

        线程ID:2284,end time:   15:07:58

        线程ID:2068,end time:   15:07:58

        线程ID:2640,end time:   15:07:58

 

输出T16

Main Thread ID:2488

线程启动,ID:2368

线程启动,ID:2268

线程启动,ID:2280

线程启动,ID:2680

线程启动,ID:2644

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:09:18

        线程ID:2396,end time:   15:09:23

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:09:23

        线程ID:2396,end time:   15:09:28

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:09:28

        线程ID:2396,end time:   15:09:33

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:09:33

        线程ID:2396,end time:   15:09:38

对象Test2。所在线程ID:2396

        线程ID:2396,begin time: 15:09:38

        线程ID:2396,end time:   15:09:43

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