CN106095445B - Installation method, device and the terminal of driver - Google Patents

Installation method, device and the terminal of driver Download PDF

Info

Publication number
CN106095445B
CN106095445B CN201610414585.0A CN201610414585A CN106095445B CN 106095445 B CN106095445 B CN 106095445B CN 201610414585 A CN201610414585 A CN 201610414585A CN 106095445 B CN106095445 B CN 106095445B
Authority
CN
China
Prior art keywords
driver
warping apparatus
thread
installation
module
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.)
Active
Application number
CN201610414585.0A
Other languages
Chinese (zh)
Other versions
CN106095445A (en
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology Co 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 Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN201610414585.0A priority Critical patent/CN106095445B/en
Publication of CN106095445A publication Critical patent/CN106095445A/en
Application granted granted Critical
Publication of CN106095445B publication Critical patent/CN106095445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses a kind of installation method of driver, device and terminals.Mounted N number of driver is needed the described method includes: obtaining, wherein N is the positive integer greater than 1;The quantity N of mounted driver creates M thread or process as needed, wherein M is the positive integer greater than 1, M≤N;M driver in N number of driver is installed simultaneously by the M thread or process.The above method realizes the time for saving installation driver and the resource for making full use of terminal.

Description

Installation method, device and the terminal of driver
Technical field
The present invention relates to field of terminal more particularly to a kind of installation methods of driver, device and terminal.
Background technique
Driver is the separate procedure that can make terminal and communication between devices.Operating system only passes through driver It is just able to achieve the control to equipment, if equipment is fitted without driver, equipment cisco unity malfunction, so, it is such Equipment is referred to as warping apparatus.
Under prior art conditions, when user needs while installing multiple drivers, previous driving can only first be waited Program installs, and could start the installation to the latter driver, if the previous driving set-up time is too long, will lead Causing the latter driver needs to wait for a long time just can be carried out installation, thus can greatly waste the time of user, can not fill Divide the resource using terminal.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that provide a kind of installation method of driver, device with And terminal, realize the time for saving installation driver and the resource for making full use of terminal.
In a first aspect, providing a kind of installation method of driver, comprising: obtain and need mounted N number of driving journey Sequence, wherein N is the positive integer greater than 1;The quantity N of mounted driver creates M thread or process as needed, In, M is the positive integer greater than 1, M≤N;By the M thread or process to M driving journey in N number of driver Sequence is installed simultaneously.
With reference to first aspect, in the first possible embodiment of first aspect, when creation is M thread, institute It states M thread and belongs to the same process, alternatively, the M thread belongs to multiple processes.
With reference to first aspect, in second of first aspect possible embodiment, mounted driving journey as needed After the quantity N of sequence creates M thread or process, the method also includes: to N-M driving in N number of driver Program carries out queue.
With reference to first aspect or the first or the second possible embodiment of first aspect, the third of first aspect In the possible embodiment of kind, the method also includes: after completing to the installation of N number of driver, detect in terminal With the presence or absence of warping apparatus, wherein the warping apparatus is the equipment for needing to install driver;It is set if there is the exception It is standby, judge whether the quantity of the warping apparatus is greater than M, if it is judged that for greater than M, then by the M thread or into Journey installs the driver of M warping apparatus in the warping apparatus simultaneously, and by the drive of remaining warping apparatus Dynamic program carries out queue;If it is judged that for less than or equal to M, then selected from the M thread or process with it is described The equal thread of warping apparatus quantity or process install the driver of the warping apparatus simultaneously.
With reference to first aspect or the first or the second possible embodiment of first aspect, the 4th of first aspect the In the possible embodiment of kind, the method also includes: after completing to the installation of N number of driver, detect in terminal With the presence or absence of warping apparatus, wherein the warping apparatus is the equipment for needing to install driver;It is set if there is the exception It is standby, the quantity S of the warping apparatus is obtained, T thread or process are created according to the quantity S of the warping apparatus, pass through the T A thread or process install the driver of T warping apparatus in the S warping apparatus simultaneously, and to the S The driver of S-T warping apparatus in a warping apparatus carries out queue, wherein S is the positive integer greater than 1, and T is greater than 1 Positive integer, S≤T.
Second aspect, provides a kind of mounting device of driver, described device include obtain module, creation module with And installation module, the module that obtains are used to obtain the N number of driver for needing to be mounted, wherein N is the positive integer greater than 1; Quantity N of the creation module for driver mounted as needed creates M thread or process, wherein M for greater than 1 positive integer, M≤N;The installation module is used for through the M thread or process to M in N number of driver Driver is installed simultaneously.
In conjunction with second aspect, in the possible embodiment of the first of second aspect, when creation is M thread, institute It states M thread and belongs to the same process, alternatively, the M thread belongs to multiple processes.
In conjunction with second aspect, in the possible embodiment of second of second aspect, described device further includes Queue module, The Queue module is used to carry out queue to N-M driver in N number of driver.
In conjunction with the first or the second possible embodiment of second aspect or second aspect, the third of second aspect In kind possible embodiment, when creation is M thread, described device further includes detection module and judgment module, described Detection module is used for after completing to the installation of N number of driver, is detected and be whether there is warping apparatus in terminal, wherein The warping apparatus is the equipment for needing to install driver;The judgment module is used for when there are the warping apparatus, is sentenced Whether the quantity of the warping apparatus of breaking is greater than M;The installation module is also used in judging result be to pass through the M greater than M Thread or process install the driver of M warping apparatus in the warping apparatus simultaneously, and by remaining exception The driver of equipment carries out queue;When judging result is less than or equal to M, selected from the M thread or process The thread or process equal with the warping apparatus quantity installs the driver of the warping apparatus simultaneously.
In conjunction with the first or the second possible embodiment of second aspect or second aspect, the 4th of second aspect the In the possible embodiment of kind, described device further includes detection module, and the detection module is used to complete to N number of driving After the installation of program, detects and whether there is warping apparatus in terminal, wherein the warping apparatus is to need to install driver Equipment;The installation module is also used to when there are the warping apparatus, the quantity S of the warping apparatus is obtained, according to described The quantity S of warping apparatus creates T thread or process, by the T thread or process to the T in the S warping apparatus The driver of a warping apparatus is installed simultaneously, and to the driving journey of S-T warping apparatus in the S warping apparatus Sequence carries out queue, wherein S is the positive integer greater than 1, and T is the positive integer greater than 1, S≤T.
The third aspect, the present invention provides a kind of terminals, comprising: processor, memory, communication interface and bus;It is described Processor, the memory are connected by the bus with the communication interface and complete mutual communication;The memory Store executable program code;The processor run by reading the executable program code stored in the memory with The corresponding program of the executable program code, with the installation method for executing a kind of driver;Wherein, the method is Such as the described in any item methods of first aspect.
Fourth aspect, the present invention provides a kind of storage mediums, wherein the storage medium is for storing application program, institute State any one of installation method of the application program for executing a kind of driver that first aspect present invention provides at runtime.
5th aspect, the present invention provides a kind of application programs, wherein the application program for executing this hair at runtime A kind of any one of the installation method for driver that bright first aspect provides.
The implementation of the embodiments of the present invention has the following beneficial effects: after obtaining the N number of driver for needing to be mounted, The quantity N of mounted driver creates M thread or process as needed, then, by M thread or process to N number of M driver in driver is installed simultaneously, can effectively save the time for installing driver and sufficiently benefit With the resource of terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the installation method of driver provided in an embodiment of the present invention;
Fig. 2 is multiple drivers while installation in a kind of installation method of driver provided in an embodiment of the present invention Schematic diagram;
Fig. 3 is the flow chart of the installation method of another driver provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the installation method of another driver provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the mounting device of driver provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the mounting device of another driver provided in an embodiment of the present invention
Fig. 7 is the structural schematic diagram of the mounting device of another driver provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment , it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.Explanation of the invention Term " includes " and " having " and their any deformations in book and claims and the attached drawing, it is intended that covering is not Exclusive includes.Such as it contains the process, method, system, product or equipment of a series of steps or units and is not limited to The step of listing or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these The intrinsic other step or units of process, method, product or equipment.
Terminal described in the embodiment of the present invention may include smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (Mobile Internet Devices, MID) or wearable device etc..
Referring to Figure 1, Fig. 1 is a kind of installation method of driver provided in an embodiment of the present invention.As shown in Figure 1, should The installation method of driver can include but is not limited to following steps.
110: obtaining and need mounted N number of driver, wherein N is the positive integer greater than 1.
In a specific embodiment, the SetupDiGetClassDevs that terminal is provided by API, Two classes of SetupDiEnumDeviceInfo enumerate the hardware information in terminal, to obtain not yet installing driving journey in terminal The warping apparatus of sequence.After terminal finds out the warping apparatus (assuming that quantity is N number of) for not yet installing driver, obtain N number of Need to install N number of driver of the driver of the warping apparatus of driver to be mounted as needs.
In another specific embodiment, the SetupDiGetClassDevs that terminal is provided by API, Two classes of SetupDiEnumDeviceInfo enumerate the hardware information in terminal, to obtain not yet installing driving journey in terminal The warping apparatus of sequence.Terminal displays out the warping apparatus for not yet installing driver in selection interface, N number of for selection by the user Need to install the warping apparatus of driver.User selected it is N number of need to install the warping apparatus of driver after, terminal Obtain N number of driver of the driver of N number of warping apparatus for needing to install driver to be mounted as needs.
120: the quantity N of mounted driver creates M thread or process as needed.Wherein, M is greater than 1 Positive integer, M≤N.
The quantity N that terminal can according to need mounted driver creates M thread, alternatively, can according to need The quantity N of mounted driver creates M process.
It is understood that when creation is M thread, M thread may belong to the same process, alternatively, M line Journey may belong to multiple processes.For example, thread 1,2,3 may belong to the same process 1, alternatively, thread 1 belongs to process 1, thread 2 belong to process 2, and thread 3 belongs to process 3, alternatively, thread 1 and thread 2 belong to process 1, thread 3 belongs to process 2 etc..
130: M driver in N number of driver being installed simultaneously by M thread or process.
Terminal obtains corresponding with the warping apparatus for needing to install driver N number of driver, and from N number of driver In arbitrarily select M driver, and to the M driver selected while being installed by M thread or process.
140: queue is carried out to N-M driver in N number of driver.
It, can be by N-M drive remaining in N number of driver for N-M driver remaining in N number of driver Dynamic program carries out queue installation etc..For example, needing to be mounted as shown in Fig. 2, sharing 6 drivers, terminal establishes 4 Thread installs 6 drivers, wherein 4 drivers in 6 drivers are carried out simultaneously by 4 threads Installation, remaining 2 drivers carry out queue, when having driver to install in the driver that 4 are being installed, then Driver in the remaining 2 drivers driver installed that will substitute is installed.
It is understood that original side can also be passed through for N-M driver remaining in N number of driver Method carries out installing one by one etc., and the present invention is not especially limited.
Fig. 3 is referred to, Fig. 3 is the installation method of another driver provided in an embodiment of the present invention.As shown in figure 3, The installation method of the driver can include but is not limited to following steps.
210: obtaining and need mounted N number of driver, wherein N is the positive integer greater than 1.
220: the quantity N of mounted driver creates M thread or process as needed.Wherein, M is greater than 1 Positive integer, M≤N.
230: M driver in N number of driver being installed simultaneously by M thread or process.
240: queue is carried out to N-M driver in N number of driver.
The step 210 of this implementation, 220,230 and 240 respectively in embodiment shown in FIG. 1 step 110,120, 130 and 140 is identical, no longer specific herein referring specifically to step 110,120,130 and 140 in implementation shown in FIG. 1 Description.
250: whether there is warping apparatus in detection terminal.
Warping apparatus is the equipment for needing to install driver.Since there are certain dependences between equipment, so, Only the driver of some equipment after the installation is completed, other equipment can just be shown, and just be shown behind these The driver for the equipment come all is not properly installed.So after the installation for completing N number of driver, it is also necessary to examine It surveys and whether there is warping apparatus in terminal.Specifically, the SetupDiGetClassDevs that can be provided by system API, Two interfaces of SetupDiEnumDeviceInfo enumerate hardware information, obtain needing to install the hardware device of driver to make For warping apparatus.If there are warping apparatus in terminal, 260 are entered step;If not there is warping apparatus in terminal, say The driver of the bright positive all devices of terminal has all been properly installed, and terminates the process of this method.
260: judging whether the quantity of warping apparatus is greater than M.
Terminal judges whether the quantity of warping apparatus is greater than M, if it is judged that the quantity for warping apparatus is greater than M, into Enter step 270;If it is judged that the quantity for warping apparatus is less than or equal to M, 280 are entered step.
270: the driver of M warping apparatus in warping apparatus is installed simultaneously by M thread or process, And the driver of remaining warping apparatus is subjected to queue.
When the quantity of warping apparatus is greater than M, original M thread or process can use to the M in warping apparatus The driver of a warping apparatus is installed simultaneously, and the driver of remaining warping apparatus is carried out queue.
280: the drive of the thread or process equal with warping apparatus quantity to warping apparatus is selected from M thread or process Dynamic program is installed simultaneously.
Warping apparatus quantity be less than or equal to M when, can be selected from M original thread or process with it is different The normal equal thread of number of devices or process install the driver of warping apparatus simultaneously.
Fig. 4 is referred to, Fig. 4 is the installation method of another driver provided in an embodiment of the present invention.As shown in figure 4, The installation method of the driver can include but is not limited to following steps.
310: obtaining and need mounted N number of driver, wherein N is the positive integer greater than 1.
320: the quantity N of mounted driver creates M thread or process as needed.Wherein, M is greater than 1 Positive integer, M≤N.
330: M driver in N number of driver being installed simultaneously by M thread or process.
340: queue is carried out to N-M driver in N number of driver.
The step 310 of this implementation, 320,330 and 340 respectively in embodiment shown in FIG. 1 step 110,120, 130 and 140 is identical, no longer specific herein referring specifically to step 110,120,130 and 140 in implementation shown in FIG. 1 Description.
350: whether there is warping apparatus in detection terminal.
Warping apparatus is the equipment for needing to install driver.Since there are certain dependences between equipment, so, Only the driver of some equipment after the installation is completed, other equipment can just be shown, and just be shown behind these The driver for the equipment come all is not properly installed.So after the installation for completing N number of driver, it is also necessary to examine It surveys and whether there is warping apparatus in terminal.Specifically, the SetupDiGetClassDevs that can be provided by system API, Two interfaces of SetupDiEnumDeviceInfo enumerate hardware information, obtain needing to install the hardware device of driver to make For warping apparatus.If there are warping apparatus in terminal, 360 are entered step;If not there is warping apparatus in terminal, say The driver of the bright positive all devices of terminal has all been properly installed, and terminates the process of this method.
360: obtaining the quantity S of warping apparatus, T thread or process are created according to the quantity S of warping apparatus, pass through T Thread or process install the driver of T warping apparatus in S warping apparatus simultaneously, and to S warping apparatus In S-T warping apparatus driver carry out queue.
The quantity S of terminal acquisition warping apparatus, wherein S is the positive integer greater than zero.Terminal can be according to warping apparatus Quantity S creates T thread, alternatively, can create T process according to the quantity S of warping apparatus.It is understood that when creation When being T thread, T thread may belong to the same process, alternatively, T thread may belong to multiple processes.For example, line Journey 1,2,3 may belong to the same process 1, alternatively, thread 1 belongs to process 1, thread 2 belongs to process 2, and thread 3 belongs to process 3, Alternatively, thread 1 and thread 2 belong to process 1, thread 3 belongs to process 2 etc..
Terminal arbitrarily selects T driver from the driver of S warping apparatus, and passes through T thread or process To the T driver selected while installing.For S-T driver remaining in S driver, can incite somebody to action Remaining S-T driver carries out queue installation etc. in S driver.It is understood that for S driver In remaining S-T driver, can also carry out one by one installing by original method etc., the present invention does not limit specifically It is fixed.
It is above-mentioned to illustrate the method for the embodiment of the present invention, following for convenient for better implementing the embodiment of the present invention Correspondingly the mounting device for cooperating the driver for implementing above scheme is also provided below in above scheme.
Fig. 5 is referred to, Fig. 5 is a kind of structural schematic diagram of the mounting device of driver provided in an embodiment of the present invention. As shown in figure 5, the mounting device 50 of the driver include: obtain module 501, creation module 502, installation module 503 and Queue module 504.
The module 501 that obtains is used to obtain the N number of driver for needing to be mounted, wherein N is the positive integer greater than 1.
Quantity N of the creation module 502 for driver mounted as needed creates M thread or process, Wherein, M is the positive integer greater than 1, M≤N.
The installation module 503 is used for through the M thread or process to M driving in N number of driver Program is installed simultaneously.
The Queue module 504 is used to carry out queue to N-M driver of N number of driver.
Optionally, when creation is M thread, the M thread belongs to the same process, alternatively, the M thread Belong to multiple processes.
It will be appreciated that the function of each functional unit of the mounting device 50 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 1 embodiment of the method implements, and details are not described herein again.
Show please also refer to the structure that Fig. 6, Fig. 6 are the mounting devices of another driver provided in an embodiment of the present invention It is intended to.Wherein, the mounting device 50 of driver shown in fig. 6 is that the mounting device 50 of driver as shown in Figure 5 carries out What optimization obtained.The mounting device 50 of the driver further include: detection module 505 and judgment module 506.
The detection module 505 is used for after completing to the installation of N number of driver, and detecting whether there is in terminal Warping apparatus, wherein the warping apparatus is the equipment for needing to install driver;
The judgment module 506 is used for when there are the warping apparatus, judges whether the quantity of the warping apparatus is big In M;
The installation module 503 is also used in judging result be greater than M, by the M thread or process to described different The driver of the standing M warping apparatus in is installed simultaneously, and the driver of remaining warping apparatus is carried out Queue;When judging result is less than or equal to M, selection and the warping apparatus quantity from the M thread or process Equal thread or process installs the driver of the warping apparatus simultaneously.
It will be appreciated that the function of each functional unit of the mounting device 50 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 2 embodiment of the method implements, and details are not described herein again.
Show please also refer to the structure that Fig. 7, Fig. 7 are the mounting devices of another driver provided in an embodiment of the present invention It is intended to.Wherein, the mounting device 50 of driver shown in Fig. 7 is that the mounting device 50 of driver as shown in Figure 5 carries out What optimization obtained.The mounting device 50 of the driver further include: detection module 507.
The detection module 507 is used for after completing to the installation of N number of driver, and detecting whether there is in terminal Warping apparatus, wherein the warping apparatus is the equipment for needing to install driver;
The installation module 503 is also used to when there are the warping apparatus, obtains the quantity S of the warping apparatus, root T thread or process are created according to the quantity S of the warping apparatus, by the T thread or process to the S warping apparatus In the driver of T warping apparatus installed simultaneously, and to S-T warping apparatus in the S warping apparatus Driver carries out queue, wherein S is the positive integer greater than 1, and T is the positive integer greater than 1, S≤T.
It will be appreciated that the function of each functional unit of the mounting device 50 of the driver of the present embodiment can be according to above-mentioned The method of Fig. 3 embodiment of the method implements, and details are not described herein again.
Fig. 8 is referred to, is a kind of structural schematic diagram of terminal provided by the invention.Terminal as described in this embodiment 700 include: at least one processor 701, communication interface 702, user interface 703 and memory 704, and processor 701, communication connect Mouth 702, user interface 703 can be connected with memory 704 by bus or other way, and the embodiment of the present invention is to pass through bus For 705 connections.Wherein,
Processor 701 can be general processor, such as central processing unit (Central Processing Unit, CPU)。
Communication interface 702 can be wireline interface (such as Ethernet interface) or wireless interface (such as cellular network interface Or use wireless lan interfaces), for being communicated with other terminals or server.In the embodiment of the present invention, communication interface 702 are specifically used for the link of the webpage of carrying target news in targeted website being sent to client.
The concretely touch panel, including touch screen and touch screen of user interface 703, for detecting the behaviour on touch panel It instructs, user interface 703 is also possible to physical button or mouse.In the embodiment of the present invention, user interface 703 is specifically used for Receive the title or keyword of the targeted news of user's input.User interface 703 can also be display screen, for exporting, showing Image or data.In the embodiment of the present invention, user interface 703 is specifically used for receiving title or the pass of the targeted news of user's input Keyword.
Memory 704 may include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory also may include nonvolatile memory (Non-Volatile ), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk Memory (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);Memory 704 can also include upper State the combination of the memory of type.Memory 704 is used to store a set of program code, and processor 701 is for calling memory 704 The program code of middle storage, performs the following operations:
Processor 701, which obtains, needs mounted N number of driver, wherein N is the positive integer greater than 1;
The quantity N for the driver that processor 701 is mounted as needed creates M thread or process, wherein M is big In 1 positive integer, M≤N;
Processor 701 by the M thread or process to M driver in N number of driver simultaneously into Row installation.
Optionally, when creation is M thread, the M thread belongs to the same process, alternatively, the M thread Belong to multiple processes.
Optionally, processor 701 carries out queue to N-M driver in N number of driver.
Optionally, processor 701 is after completing the installation to the corresponding driver of the N number of driver, and detection is eventually It whether there is warping apparatus in end, wherein the warping apparatus is the equipment for needing to install driver;There are the exceptions When equipment, judge whether the quantity of the warping apparatus is greater than M, when judging result is greater than M, by the M thread or Process installs the driver of M warping apparatus in the warping apparatus simultaneously, and by remaining warping apparatus Driver carries out queue;Judging result be less than or equal to M when, from the M thread or process select with it is described The equal thread of warping apparatus quantity or process install the driver of the warping apparatus simultaneously.
Optionally, processor 701 detects in terminal after completing to the installation of N number of driver with the presence or absence of different It sets up standby, wherein the warping apparatus is the equipment for needing to install driver;When there are the warping apparatus, institute is obtained The quantity S for stating warping apparatus creates T thread or process according to the quantity S of the warping apparatus, by the T thread or Process installs the driver of T warping apparatus in the S warping apparatus simultaneously, and sets to the S exception The driver of S-T warping apparatus in standby carries out queue, wherein and S is the positive integer greater than 1, and T is the positive integer greater than 1, S≤T。
It will be appreciated that the execution step of processor 701 for details, reference can be made in Fig. 1 to Fig. 4 appoint embodiment described in content, Details are not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention Benefit requires made equivalent variations, still belongs to the scope covered by the invention.

Claims (7)

1. a kind of installation method of driver characterized by comprising
Obtain the N number of driver for needing to be mounted to hardware device, wherein N is the positive integer greater than 1;
The quantity N of mounted driver creates M thread or process as needed, wherein M is the positive integer greater than 1, M ≤N;
M driver in N number of driver is installed simultaneously by the M thread or process;
Wherein, it after completing to the installation of N number of driver, detects and whether there is warping apparatus in terminal, wherein is described Warping apparatus is the equipment for needing to install driver, there are dependence between the hardware device and the warping apparatus, Only the driver of equipment component after the installation is completed, warping apparatus can just be shown;
If there is the warping apparatus, judge whether the quantity of the warping apparatus is greater than M, if it is judged that for greater than M, Then the driver of M warping apparatus in the warping apparatus is installed simultaneously by the M thread or process, and The driver of remaining warping apparatus is subjected to queue;If it is judged that for less than or equal to M, then from the M line Selected in journey or process the thread or process equal with the warping apparatus quantity to the driver of the warping apparatus simultaneously It is installed.
2. the method according to claim 1, wherein the M thread belongs to when creation is M thread The same process, alternatively, the M thread belongs to multiple processes.
3. the method according to claim 1, wherein the quantity N of mounted driver creates M as needed After a thread or process, the method also includes:
Queue is carried out to N-M driver in N number of driver.
4. a kind of mounting device of driver, which is characterized in that described device includes obtaining module, creation module and installation Module,
The acquisition module is for obtaining the N number of driver for needing to be mounted to hardware device, wherein N is just whole greater than 1 Number;
Quantity N of the creation module for driver mounted as needed creates M thread or process, wherein M is Positive integer greater than 1, M≤N;
The installation module be used for by the M thread or process to M driver in N number of driver simultaneously It is installed;
Described device further includes detection module and judgment module,
The detection module is used for after completing to the installation of N number of driver, is detected in terminal and is set with the presence or absence of abnormal It is standby, wherein the warping apparatus is the equipment for needing to install driver;It is deposited between the hardware device and the warping apparatus In dependence, only the driver of equipment component after the installation is completed, warping apparatus can just be shown;
The judgment module is used for when there are the warping apparatus, judges whether the quantity of the warping apparatus is greater than M;
The installation module is also used in judging result be greater than M, by the M thread or process in the warping apparatus M warping apparatus driver simultaneously installed, and by the driver of remaining warping apparatus carry out queue;Sentencing When disconnected result is less than or equal to M, the thread equal with the warping apparatus quantity is selected from the M thread or process Or process installs the driver of the warping apparatus simultaneously.
5. device according to claim 4, which is characterized in that when creation is M thread, the M thread belongs to The same process, alternatively, the M thread belongs to multiple processes.
6. device according to claim 4, which is characterized in that described device further includes Queue module,
The Queue module is used to carry out queue to N-M driver in N number of driver.
7. a kind of terminal characterized by comprising processor, memory, communication interface and bus;The processor described is deposited Reservoir is connected by the bus with the communication interface and completes mutual communication;The memory stores executable program Code;The processor is run and the executable program by reading the executable program code stored in the memory The corresponding program of code, with the installation method for executing a kind of driver;Wherein, the method is such as claims 1 to 3 Method described in any claim.
CN201610414585.0A 2016-06-13 2016-06-13 Installation method, device and the terminal of driver Active CN106095445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610414585.0A CN106095445B (en) 2016-06-13 2016-06-13 Installation method, device and the terminal of driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610414585.0A CN106095445B (en) 2016-06-13 2016-06-13 Installation method, device and the terminal of driver

Publications (2)

Publication Number Publication Date
CN106095445A CN106095445A (en) 2016-11-09
CN106095445B true CN106095445B (en) 2019-08-23

Family

ID=57846527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610414585.0A Active CN106095445B (en) 2016-06-13 2016-06-13 Installation method, device and the terminal of driver

Country Status (1)

Country Link
CN (1) CN106095445B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426505B (en) * 2017-08-16 2022-03-29 中国移动通信有限公司研究院 Software installation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527199A (en) * 2003-03-07 2004-09-08 联想(北京)有限公司 Drive program installing process
CN104679548A (en) * 2013-12-03 2015-06-03 联想(北京)有限公司 Information processing method and electronic equipment
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041257A (en) * 2000-07-24 2002-02-08 Minolta Co Ltd Install method of printer driver, recording medium which records installation program for printer deriver, and installation device for printer driver
EP1975786A1 (en) * 2007-03-29 2008-10-01 Ricoh Company, Ltd. Method for installing a printer driver on an end user's computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527199A (en) * 2003-03-07 2004-09-08 联想(北京)有限公司 Drive program installing process
CN104679548A (en) * 2013-12-03 2015-06-03 联想(北京)有限公司 Information processing method and electronic equipment
CN104714814A (en) * 2013-12-13 2015-06-17 贝壳网际(北京)安全技术有限公司 Drive program mounting method and client terminal device
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver

Also Published As

Publication number Publication date
CN106095445A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN105320417B (en) Page switching method and client
US20160004574A1 (en) Method and apparatus for accelerating system running
CN104951340A (en) Information processing method and device
CN103345405A (en) Application program starting method and device and client
US9652111B2 (en) Method and system for quickly arranging multiple windows and mobile apparatus thereof
CN105930208A (en) Thread scheduling method and thread scheduling apparatus
CN107045475B (en) Test method and device
CN109117039B (en) Display method and terminal equipment
CN104461546A (en) Application based computing device optimizing method and device
CN107894945A (en) Bury an adding method, mobile terminal and computer-readable recording medium
CN104063125A (en) Managing method and managing device for desktop icons
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN111309413B (en) Interface display method and device, electronic equipment and storage medium
CN106815037B (en) Application function execution method and device
CN106095445B (en) Installation method, device and the terminal of driver
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
US20180059650A1 (en) Techniques for multiple application banks in a welding or cutting system
CN108549557A (en) Using storing method, terminal and storage medium
CN104461741A (en) Graphics device interface based computing device optimizing method and device
CN111949180A (en) Icon arrangement method and device, storage medium and electronic equipment
CN106055370B (en) Drive programe installation method, device and terminal
US20180059640A1 (en) Techniques for event driven scheduling in a welding or cutting system
CN112578961B (en) Application identifier display method and device
CN111522599B (en) Method and device for transmitting information
CN104951325A (en) Information display method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20181207

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant