The process of multi threading model (M:N) study

Author
LiJin
Advisor
LiYi
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP316 Operating system
Degree
Master's thesis
Year
2012
Downloads
13
Citations
0

Request the full text

Abstract

In these years, computer speed and efficiency has been rapid developed. On one hand, this situation due to the continuous improvement of the processor and memory access speed the majority hardware manufacturers made, the other important reason is that operating system architecture has been update continuously. Thread, from its birth, has been playing a very significant role in upgrading of the speed of execution of the operating system. From the multi-threaded simulation on the original single-core processors, to real multi-threaded execution on multi-core processors, the position of thread in operating system has been improvement, and now it already has become one of the most significant consideration in operating system efficiency standards. Improvement of model of the thread, optimization of thread management methods already become the development trend of research on operating system.From the basic theory of the processes and threads, this thesis introduce the existing three thread model and analyze the internal organization and implementation method of each model to compare the advantages and disadvantages between them. Then research the implementation of mainstream operating system thread library, first analysis the Windows operating system process and thread management, focus on the analysis of the data structure level, organizations of the thread within the process address space management, as well as the preemption scheduling policy based on priority level of thread, a detailed description of the creation and process of function running has also been made. Then analyze the implementation mechanism of the Linux operating system, focusing on analysis of the organizational structure of the data structure"process descriptor" which process and thread shared, and describe how the operating system create a executable process from scratch. Contacting the Linux system support on thread improvement, analyze the implementation method of two generation thread library Linux Thread and NPTL(Native POSIX Thread Library), and compare the difference of them. And then through the implementation of Solaris thread library analysis, combined with the first two operating system research, determine the direction of the new thread library this thesis described. After specific description of the theoretical analysis and design plan, this thesis begin to introduce the new many-to-many thread model thread library. Starting from the process of determining of the this thread library design goals, this thesis introduces this library from the following specific areas:the main data structure design, POSIX compatible function implementation, load balanced design and asynchronous I/O. Provide a viable thread library design process records. At Last of the thesis, through the test of the new thread library performance, we analyze achievement in the design process and lack of thread library, and propose a viable solution method.

Table of contents

Summary 4-5 ABSTRACT 5-10 first chapter 10-13 1.1 research background 10-12 the main thesis of the work 1.2 organizational structure 12 1.3 papers 12-13 chapter thread library design-related technology infrastructure 13-23 2.1 POSIX 13-14 2.2 process 14 2.3 thread 14-15 2.4 user threads and kernel threads 15-16 2.5 thread library model 16-22 2.5.1 user-level threads and kernel scheduler mapped 17 2.5.2 one thread model 17-19 2.5.3 Many- threaded model 19-20 2.5.4 -many threading model 20-22 2.6 Summary 22-23 third chapter mainstream operating system thread model 23-46 3.1 Windows operating system thread implementation mechanism 23-32 3.1.0 ReactOS Overview 23-24 3.1.1 process thread data structure 24-27 3.1.2 thread anchored mechanism 27-28 3.1.3 Windows process creation process 28-30 3.1.4 Windows process address space of the process of creating 30-31 3.1.5 Windows scheduling system 31-32 3.2 Linux operating system thread implementation mechanism 32-42 3.2.1 process thread data structure 33-35 3.2.2 Linux thread support 35 3.2.3 process Status 35-37 3.2.4 Linux process creation process 37-38 3.2.5 Linux and Windows process thread model distinguish 38-39 3.2.6 LinuxThread thread library 39-41 3.2.7 NPTL threading library 41-42 3.3 Solaris threads library 42-45 3.3.1 thread library structure analysis 43-44 3.3.2 Solaris user threads 44 3.3. 3 Solaris threads library cons analysis 44-45 3.4 Summary 45-46 Chapter IV -many threads library design 46-71 <br / > 4.1 thread library overall design 46-48 4.1.1 thread library application scenarios 46-47 4.1.2 thread library design goals 47-48 4.2 thread library model design 48-53 select the 4.2.1 kernel scheduler body 48 4.2.2 new -to-many model design 48-50 4.2.3 user thread state 50-52 4.2.4 thread waits for notification 52-53 4.2.5 thread priority 53 4.3 thread library data structure design 53-57 4.3.1 thread information 53-55 4.3.2 execute information 55 - 56 4.3.3 pthread_attr_t 56-57 4.4 thread library function 57-67 4.4.1 pthread_create () 57-62 4.4.2 thread_schedule () 62-64 4.4.3 pthread_join () 64 4.4.4 pthread_exit () and pthread cancel () 64-66 4.4.5 sched_yield () 66 4.4.6 functions running processes 66-67 4.5 thread library load balancing 67 - 68 introduced 4.6 asynchronous I / O, 68-70 4.6.1 common thread I / O processing 68-69 4.6.2 asynchronous I / O advantage achieve 69 4.6.3 AIO mechanism 69-70 4.7 Summary 70-71 Chapter thread library performance test 71-76 5.1 test environment and methods 71 5.2 creates destruction test 71-73 5.3 load balancing mechanism to test 73 -74 5.4 asynchronous I / O performance test 74-75 5.5 summary 75-76 Chapter VI summary and Outlook 76 - 78 Thanks 78-79 References made ??during the 79-82 attack Shuo research 82

Related dissertations

  1. Design and Implementation of Distributed Hydrological Monitoring System
    ChenGuang ·Zhejiang University of Technology ·2013 ·Master's thesis
  2. The Design and Implementation of a NEW Generation of Digital Campus Network
  3. MPLS Traffic Engineering Load Balance Algorithm Using Deviation Path
  4. Research and Implementation of the High-performance HTTP Reserves Proxy Server
    ChangZhi ·Harbin Engineering University ·2013 ·Master's thesis
  5. Based on the JBoss AS7Study of Enterprise Distributed Deployment Platform
    WangWeiWei ·Xiangtan University ·2013 ·Master's thesis
  6. A Study of Handover Technology Based on the Proxy Mobile IPv6
    SongBaiSen ·Northeastern University ·2011 ·Master's thesis
  7. Research and Implementation of DNS64Key Technology in the IPv4/IPv6Transition
    ShaoShuai ·Harbin Engineering University ·2013 ·Master's thesis
  8. Research on the Decision Tree-like Hierarchical Grid Resource Organization Model and Scheduling Algorithms
    WenLiJuan ·Yanshan University ·2013 ·Master's thesis
  9. The Design and Implementation of Distributed File System in Crowd Intelligence Sensation Environment
  10. Research on Data Access Optimizations for Erasure-Coded Storage Clusters
  11. The Design and Implementation of MiniQQ Project Data Storage Module
    LuPengChao ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. A Study on Resource Indexing for Distributed Storage
    WuZhiXing ·Zhejiang University ·2013 ·Master's thesis
  13. The Research for Replica Strategy Using Distributed Parallel File System HDFS
    HuangCaiFeng ·Zhejiang Normal University ·2013 ·Master's thesis
  14. The Research of Dynamic Double-Level Layers VM Scheduler Strategies
  15. The Research and Implementation of IPTV Distributed System Based on HLS
  16. Design and Simulation of Dynamic RWA Algorithm with QoS and Link Protection Mechanism
    ZhengYin ·Northeastern University ·2011 ·Master's thesis
  17. Research of Algorithms of Radio Resource Management
    LiKe ·Beijing Jiaotong University ·2014 ·Master's thesis
  18. The Research of Load Balance Algorithm Based on Resource for the Streaming Media Transmission Network
    LiShiYao ·Northeastern University ·2012 ·Master's thesis
  19. Research on the Mechanism of Resource Management Based on Service Capabilities in the Innovative Mobile Service Control Network
  20. Design and implementation of a fast encryption algorithm of distributed RSA based on Hadoop
    ZhouJian ·Shaanxi Normal University ·2013 ·Master's thesis