Font Size: a A A

Design And Implementation The Virtual Thread Mechanism Based On Erlang Technology

Posted on:2016-10-23Degree:MasterType:Thesis
Country:ChinaCandidate:X K FanFull Text:PDF
GTID:2308330470481722Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In recent years, with the rapid development of science and technology level, op erating systemfrom the original process thread to the current development of multi th read technology, all is for the sake of concurrent processing task better, but not muc h thread technology can be the perfect solution to the task execution efficiency and hi gh concurrency environment operating system, the operating system is subject to the l imitations of the hardware, more and morenumber of concurrent multi thread, high co ncurrency situations because of the development of science and technology also app ear at the same time, brought no small challenge to the system. In high concurrency environment, hardware equipment is relatively and the backwardsituation will cause t he low utilization rate of system resources, poor execution efficiency, and may even c ause the collapse of the system, such problems facing the current operating system s olutions are mostly multi thread used to handle multiple tasks without limit, or justincrea se the system hardware investment update more efficient to upgrade the systemconfig uration, but also the cost is very expensive. In order to solve this problem, this paper presents a novel multithreaded architecture-- the virtual thread mechanism.In this paper, the main results are as follows, in the analysis of the current oper ating systemthread scheduling the time and resources spent, presents a design their own new thread model based on Erlang technology, virtual thread, thread managemen t method to break the normal procedure of the thread mechanism, to abandon the tra ditional operating system in order to reduce the time to bring the switching between t hreads overhead, using as much as possible to reduce the number of thread switchin g or reduces scheduling time, but by thevirtual thread mechanism, namely the process ing thread and scheduling threads instead ofthe operating system to complete the s witching between threads, which is characterized in thata plurality of processing threa ds share the same stack resources, scheduling the message thread switch sending wi th target identification, scheduling the purpose of the judgmentinformation mark will b e scheduling of threads and whether the current thread is belongs to athread schedul ing, according to if it is, then switch to mark the corresponding thread, if not putto the corresponding thread scheduling information, and save itself stack resources, to realize the switching between the internal thread. Combined with the design of the virtual thr ead mechanism of ideology, to a detailed description of the virtual thread model from t he overallframework to the function of each part and each part in the model, and its f unction is realized in the Hello China operating system, kernel thread management fro m macro to micro objects,specific to the design of a thread object then, specific to ach ieve switching and message queue between each thread creation, priority, status, and each thread of the.The key to realize the thread mechanism is the definition of structure and proces s mechanism of kernel thread switching, the mechanism and thread mechanism due to different past, it is not like other operating system only needs a thread structure, so t he definition of kernel structure includes the processing thread structure definition an d processing thread in thethread structure, switch when, according to the logic thinking of virtual thread mechanism,through two kinds of thread structure definition, impleme ntation of internal thread switching,and ultimately achieve operating system switching between threads more efficiently, reduce system overhead to.
Keywords/Search Tags:the Idea of Erlang, the Virtual Thread Mechanism, Scheduling of Threads, Thread, Fiber, Scheduling
PDF Full Text Request
Related items