CN102426546A - Multiwindow concurrent display method - Google Patents

Multiwindow concurrent display method Download PDF

Info

Publication number
CN102426546A
CN102426546A CN2011103451682A CN201110345168A CN102426546A CN 102426546 A CN102426546 A CN 102426546A CN 2011103451682 A CN2011103451682 A CN 2011103451682A CN 201110345168 A CN201110345168 A CN 201110345168A CN 102426546 A CN102426546 A CN 102426546A
Authority
CN
China
Prior art keywords
thread
threads
semaphore
signal amount
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103451682A
Other languages
Chinese (zh)
Inventor
储德强
张许亮
麻燕利
戴福昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jia Tong Hui (beijing) Information Technology Ltd By Share Ltd
Original Assignee
Jia Tong Hui (beijing) Information Technology Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jia Tong Hui (beijing) Information Technology Ltd By Share Ltd filed Critical Jia Tong Hui (beijing) Information Technology Ltd By Share Ltd
Priority to CN2011103451682A priority Critical patent/CN102426546A/en
Publication of CN102426546A publication Critical patent/CN102426546A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of man-computer interaction, and discloses a multiwindow concurrent display method which comprises the following steps: S1. creating semaphore; S2. creating a plurality of threads, and transferring the created semaphore into the threads; S3. loading the respectively needed resources by the threads, and pausing the threads; and S4. carrying out synchronization control on the threads by controlling the on-off state of the semaphore. The invention can create infinite window threads if computer hardware conditions permit, and can implement resource sharing of all the threads; the threads can concurrently and respectively execute different events by controlling the created semaphore; and the threads are simple to control and operate. Since the thread can be exited as long as after the semaphore is released without waiting for release of other resources, the phenomenon of thread jamming, thread infinite execution or the like can not exist, and much thread mutual exclusion treatment is not needed in the thread.

Description

The concurrent display packing of multiwindow
Technical field
The present invention relates to human-computer interaction technique field, be specifically related to the concurrent display packing of a kind of multiwindow.
Background technology
In windows operating system, all threads all be based on timeslice the operation, so each program the operation in exist thread successively to carry out sequencing problem.And when a plurality of windows of establishment showed in a program, system can distribute a plurality of threads, the scene that window successively occurs successively so always occurred.Therefore in being applied to some software systems of public arena if such situation occurs, the effect that the Total tune property that can influence the whole software system should realize with it.
A kind of technical scheme that can realize the synchronous concurrent display effect of multiwindow does not also appear in the prior art.
Summary of the invention
The technical matters that (one) will solve
Technical matters to be solved by this invention is: how to realize the synchronous concurrent display effect of multiwindow.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides the concurrent display packing of a kind of multiwindow, may further comprise the steps:
S1, establishment semaphore;
S2, create a plurality of threads, the semaphore of being created is imported in each thread;
S3, said a plurality of threads load resource needed separately, then said a plurality of threads are suspended;
S4, said a plurality of threads are carried out synchro control through the switch of controlling said semaphore.
Preferably, the mode of carrying out synchro control among the step S4 is: when discharging said semaphore, the switch of promptly controlling said semaphore is carried out said a plurality of thread when closing simultaneously.
Preferably, the performed incident of each thread is the incident that the current switch that semaphore arranged is out in this thread.
Preferably, among the step S3, if loaded resource is failed then withdrawed from this thread.
Preferably, among the step S1, create four semaphores, i.e. commencing signal amount Start, end signal amount Stop, halt signal amount Pause and release resource signal amount Release.
Preferably, between step S1 and S2, comprise initialization step: said four semaphores of initialization, the switch of halt signal amount Pause is set to out, and the switch of other three semaphores is set to close.
Preferably, said thread is the forms thread.
(3) beneficial effect
The present invention can create unlimited a plurality of forms thread under the situation of computer hardware conditions permit; And realize that all threads realize resource sharings (sharing semaphore); The semaphore of creating out through control; Different events separately carried out and carried out separately to each thread can simultaneously, and is simple to the control operation of thread.And can withdraw from thread after discharging owing to only need wait until semaphore, and and need not wait for the release of other resource, therefore there are not phenomenons such as stuck or unlimited executions of thread of thread, need not do too much Line Procedure Mutually-exclusive processing in thread inside yet.
Description of drawings
Fig. 1 is the method flow diagram of the embodiment of the invention.
Embodiment
Regard to the concurrent display packing of a kind of multiwindow proposed by the invention down, specify in conjunction with accompanying drawing and embodiment.
Principle of the present invention is when creating the display window thread, to use one or more public semaphores; And thread is hovered; Wait all threads that need create all to create after the completion, release semaphore, so; The thread of creating in all programs is carried out after can both discharging (switch in the semaphore is for closing) at semaphore simultaneously, reaches simultaneously display effect synchronously; Can both synchronously in display screen, show simultaneously no matter in program, create what windows, make the whole software system on visual effect, seem smooth and coordinate, not have the collimation error.
To create the concurrent display packing of multiwindow that 3 forms thread A, B, C are the example explanation embodiment of the invention, with reference to figure 1, this method may further comprise the steps below:
1) creates four semaphores: commencing signal amount Start, end signal amount Stop, halt signal amount Pause, release resource signal amount Release;
2) four semaphores of initialization, the switch of Pause semaphore is set to out, and promptly this semaphore has been set to, and the switch of other three semaphores is set to close, and promptly other three semaphores are set to not have; In this step, also can other semaphore be set to out, the purpose of so doing is in order to block thread, it no longer to be carried out;
3) create forms thread A, 4 semaphores creating are imported among the forms thread A, if create failure, program will be skipped the load event of current form thread A;
4) create forms thread B, 4 semaphores creating are imported among the thread B, if create failure, program will be skipped the load event of current thread B;
5) create forms thread C, 4 semaphores creating are imported among the thread C, if create failure, program will be skipped the load event of current thread C;
6) A, B, three threads of C load system resource and the external resource that needs separately, and these three threads are suspended, and wait for commencing signal amount Start; If loaded resource is failed then is withdrawed from this thread;
7) judge whether to exist the thread of needs startup, if the thread that does not exist needs to start, the whole process of then hovering (thread A, B, C are three threads of this process);
8) will create successful thread concludes in the thread tabulation;
9) switch that halt signal amount Pause is set is for closing, and uses this process to realize unification, synchro control to the forms thread through the switch of four semaphores of control.When discharging a certain semaphore, when promptly the switch of control signal amount is for the pass, carry out said a plurality of thread simultaneously, the performed incident of each thread is the current incident that commencing signal amount Start is arranged in this thread.
Above embodiment only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (7)

1. the concurrent display packing of multiwindow is characterized in that, may further comprise the steps:
S1, establishment semaphore;
S2, create a plurality of threads, the semaphore of being created is imported in each thread;
S3, said a plurality of threads load resource needed separately, then said a plurality of threads are suspended;
S4, said a plurality of threads are carried out synchro control through the switch of controlling said semaphore.
2. the method for claim 1 is characterized in that, the mode of carrying out synchro control among the step S4 is: when discharging said semaphore, the switch of promptly controlling said semaphore is carried out said a plurality of thread when closing simultaneously.
3. method as claimed in claim 2 is characterized in that, the performed incident of each thread is the incident that the current switch that semaphore arranged is out in this thread.
4. the method for claim 1 is characterized in that, among the step S3, if loaded resource is failed then withdrawed from this thread.
5. the method for claim 1 is characterized in that, among the step S1, creates four semaphores, i.e. commencing signal amount Start, end signal amount Stop, halt signal amount Pause and release resource signal amount Release.
6. method as claimed in claim 5 is characterized in that, between step S1 and S2, comprises initialization step: said four semaphores of initialization, and the switch of halt signal amount Pause is set to out, and the switch of other three semaphores is set to close.
7. like each described method in the claim 1~6, it is characterized in that said thread is the forms thread.
CN2011103451682A 2011-11-04 2011-11-04 Multiwindow concurrent display method Pending CN102426546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103451682A CN102426546A (en) 2011-11-04 2011-11-04 Multiwindow concurrent display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103451682A CN102426546A (en) 2011-11-04 2011-11-04 Multiwindow concurrent display method

Publications (1)

Publication Number Publication Date
CN102426546A true CN102426546A (en) 2012-04-25

Family

ID=45960534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103451682A Pending CN102426546A (en) 2011-11-04 2011-11-04 Multiwindow concurrent display method

Country Status (1)

Country Link
CN (1) CN102426546A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488598A (en) * 2012-06-11 2014-01-01 中兴通讯股份有限公司 Multi-mode terminal and method for realizing USB (universal serial bus) sharing
CN103648045A (en) * 2013-12-20 2014-03-19 乐视致新电子科技(天津)有限公司 Method and device for switching display interface through side navigation bar
CN104572277A (en) * 2014-12-17 2015-04-29 大唐移动通信设备有限公司 Thread flow control method and thread flow control device
CN107391125A (en) * 2017-07-03 2017-11-24 中国船舶重工集团公司第七〇九研究所 It is used for the user-interface design scheme of man-machine interaction under VxWorks system
CN107577525A (en) * 2017-08-22 2018-01-12 努比亚技术有限公司 A kind of method, apparatus and computer-readable recording medium for creating concurrent thread
CN116069396A (en) * 2023-03-01 2023-05-05 浪潮电子信息产业股份有限公司 Detection method, device, equipment and medium for out-of-order execution of multi-core CPU

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5555368A (en) * 1993-12-30 1996-09-10 Taligent Object-oriented multi-tasking view framework
CN1383077A (en) * 2001-04-27 2002-12-04 华为技术有限公司 Method for synchronously browing network pages in different windows
CN101025684A (en) * 2006-02-10 2007-08-29 三星电子株式会社 Apparatus and method for controlling key events when handling a graphics object
US7788468B1 (en) * 2005-12-15 2010-08-31 Nvidia Corporation Synchronization of threads in a cooperative thread array
CN101989259A (en) * 2009-08-06 2011-03-23 英业达股份有限公司 Multi-threaded translation display system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5555368A (en) * 1993-12-30 1996-09-10 Taligent Object-oriented multi-tasking view framework
CN1383077A (en) * 2001-04-27 2002-12-04 华为技术有限公司 Method for synchronously browing network pages in different windows
US7788468B1 (en) * 2005-12-15 2010-08-31 Nvidia Corporation Synchronization of threads in a cooperative thread array
CN101025684A (en) * 2006-02-10 2007-08-29 三星电子株式会社 Apparatus and method for controlling key events when handling a graphics object
CN101989259A (en) * 2009-08-06 2011-03-23 英业达股份有限公司 Multi-threaded translation display system and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488598A (en) * 2012-06-11 2014-01-01 中兴通讯股份有限公司 Multi-mode terminal and method for realizing USB (universal serial bus) sharing
CN103488598B (en) * 2012-06-11 2016-12-14 中兴通讯股份有限公司 A kind of multimode terminal and realize USB share method
CN103648045A (en) * 2013-12-20 2014-03-19 乐视致新电子科技(天津)有限公司 Method and device for switching display interface through side navigation bar
CN104572277A (en) * 2014-12-17 2015-04-29 大唐移动通信设备有限公司 Thread flow control method and thread flow control device
CN104572277B (en) * 2014-12-17 2018-04-27 大唐移动通信设备有限公司 A kind of thread flow control method and device
CN107391125A (en) * 2017-07-03 2017-11-24 中国船舶重工集团公司第七〇九研究所 It is used for the user-interface design scheme of man-machine interaction under VxWorks system
CN107577525A (en) * 2017-08-22 2018-01-12 努比亚技术有限公司 A kind of method, apparatus and computer-readable recording medium for creating concurrent thread
CN107577525B (en) * 2017-08-22 2020-11-17 努比亚技术有限公司 Method and device for creating concurrent threads and computer-readable storage medium
CN116069396A (en) * 2023-03-01 2023-05-05 浪潮电子信息产业股份有限公司 Detection method, device, equipment and medium for out-of-order execution of multi-core CPU

Similar Documents

Publication Publication Date Title
CN102426546A (en) Multiwindow concurrent display method
US20170004005A1 (en) Exception handling in microprocessor systems
CN203025673U (en) Multi-screen linkage touch control display system
CN103473129B (en) Multi-task queue scheduling system with scalable number of threads and implementation method thereof
ATE407403T1 (en) FORMING A COMMAND SEQUENCE IN A NON-SEQUENTIAL DMA COMMAND QUEUE
WO2014116861A3 (en) Parallel processing with proactive solidarity cells
IN2014DN06232A (en)
CN104360904A (en) Intermodular message transmission mechanism based on event bus
WO2010043706A3 (en) Method for the deterministic execution and synchronisation of an information processing system comprising a plurality of processing cores executing system tasks
CN103279331A (en) Multi-task concurrent processing method and device for Android system
CN104679548B (en) The method and electronic equipment of a kind of information processing
CN111858165B (en) Rapid recovery method, system and framework for heterogeneous executer
CN104991952B (en) A kind of method of intelligent data distribution flow engine and its synchrodata
CN109213607B (en) Multithreading rendering method and device
CN101561768A (en) Universal multitask scheduling method
CN102567090A (en) Method and system for creating a thread of execution in a computer processor
CN103823719A (en) Distributed cloud computing system and distributed cloud computing method for executable program
CN105740139A (en) Virtual environment based embedded software debugging method
US20120030504A1 (en) High reliability computer system and its configuration method
GB0917486D0 (en) Method and apparatus for facilitating a persistence application programming interface
CN104035768A (en) System and method for Android platform to be compatible with local code OpenGL program
CN101266556A (en) Multitask scheduling system
CN102866917B (en) A kind of cold fiery real-time processing method based on Linux platform and system
CN104951346B (en) A kind of process management method and system for embedded system
JP2010267091A (en) Information processing apparatus, method of controlling the same, and computer program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120425