CN1245810C - Multithreading test method utilized in tester for communication devices - Google Patents

Multithreading test method utilized in tester for communication devices Download PDF

Info

Publication number
CN1245810C
CN1245810C CNB021317089A CN02131708A CN1245810C CN 1245810 C CN1245810 C CN 1245810C CN B021317089 A CNB021317089 A CN B021317089A CN 02131708 A CN02131708 A CN 02131708A CN 1245810 C CN1245810 C CN 1245810C
Authority
CN
China
Prior art keywords
test
mutex
resource
thread
port
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.)
Expired - Fee Related
Application number
CNB021317089A
Other languages
Chinese (zh)
Other versions
CN1481089A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB021317089A priority Critical patent/CN1245810C/en
Publication of CN1481089A publication Critical patent/CN1481089A/en
Application granted granted Critical
Publication of CN1245810C publication Critical patent/CN1245810C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention relates to a multithread test method in a communication equipment tester. The present invention adopts a preemptive mode to allocate the right of use of kernel resources; simultaneously, when the kernel resources are taken up by one thread, the other threads can carry out port activation or test state switchover. Due to the adoption of the preemptive multithread mode, test ports are allocated around the kernel resources, and unreasonable allocation caused by needing artificially setting the order of the test ports can not occur. Thus, the kernel resources in test equipment can be allocated sufficiently and reasonably, and all the port test state switchover and activation operation before service test are both completed at the time of waiting for the kernel resources. The present invention really fully utilizes the kernel resources, and the test efficiency can achieve the maximum value.

Description

Multithread testing method in a kind of tester for communication devices
Technical field
The present invention relates to a kind of method of testing, be specifically related to a kind of multithread testing method that is used for tester for communication devices.
Prior art
In many tests of the communications field, the ADSL test is wherein common and important a kind of production test solution, and this test needs test in two sub-sections: performance test (operational trials) and LAYER1 test (veneer index test).Wherein, main core resource is generally SmartBits (or Ixia) and PSM selects flat level meter in the test process, is respectively applied for two parts of test service and layer1.
These two resource modules belong to the resource of comparison core in a whole set of testing equipment, also be comparison expensive resources module.For the consideration of cost and service efficiency, generally in single testing equipment, only dispose one respectively.
In test process, no matter be that operational trials or LAYER1 test all must be done the port status conversion earlier before test, even tested port is in test mode.In addition, also must be before the operational trials with port activation; Then must arrive the test mode of response by the port switching state before the LAYER1 test.Comparatively speaking, the activation port before the operational trials is more consuming time, and the frequency test among the LAYER1 is more consuming time.
In the prior art, tested single board generally has 16 to 32 road ports not wait, and can reach 64 road ports at most.Existing method of testing has two kinds substantially: serial test and part parallel test.
For the serial test, because when port of test, other ports can not utilize other utilizable resources, thus there is resource utilization low, the shortcoming that testing efficiency is low.
For concurrent testing, its part parallel in test process has utilized core resource, but must activate before the concurrent testing middle port carrying out operational trials, if it is bad to activate characteristic, consuming time longer, will cause phenomenons to be tested such as all resources, caused the wasting of resources to a certain extent.In addition, this method need artificially be provided with the test port order in design early stage, needs the situation consuming time in the consideration test process, if it is not high to dispatch the unreasonable testing efficiency that will cause.
Summary of the invention
The object of the invention can make full use of core resource and the high multithread testing method that is used for tester for communication devices of testing efficiency for providing a kind of.
To achieve these goals, the technical scheme taked of the present invention is:
A kind of tester for communication devices multithread testing method that is used for, it may further comprise the steps:
(1) starts a plurality of test threads, for each core resource is distributed system's mutex;
(2) respectively test thread synchronization contention system mutex, the test thread that obtains system's mutex obtains the right to use of core resource, and the test thread waits that does not obtain system's mutex participates in synchronous contention system mutex next time;
(3) use core resource to test to the test thread of system's mutex, delivery system mutex immediately after test is finished;
(4) judge whether to also have the not test thread of test,, change step (two) over to,, then finish test if do not have if having.
Described step (one) may further comprise the steps:
(1) according to the core resource number, statement system resource;
(2) discharge all system resource, so that the test thread is fought for resource.
Synchronous contention system mutex in the described step (two) specifically comprises the steps:
A, test thread contention system core resource;
When B, mutual exclusion test, the stand-by period can be set to unlimited wait;
The test thread of C, competitive resource is waited for always, up to obtaining system resource.
The test thread of the synchronous contention system mutex in the described step (two) is meant and switches to the test thread that test mode or port are activated.
When described step (three) is carried out, do not switch to the test thread that test mode or port be not activated and to switch to test mode simultaneously or activate port.
Because the present invention has adopted technique scheme, so have following advantage:
1, owing to used the preemptive type multithreading, carries out the test port scheduling, avoided causing dispatching irrational situation appearance because of needs artificially are provided with the test port order around core resource;
2, the core resource in the abundant rational management testing equipment of energy, and all port test state switched and operational trials before activation manipulation all in the time of wait core resource, finish, really make full use of core resource, greatly improved testing efficiency.
Description of drawings
Fig. 1 is the overall flow figure of the specific embodiment of the invention.
Embodiment:
As shown in Figure 1, multithread testing method in a kind of tester for communication devices may further comprise the steps:
(1) starts a plurality of test threads, for each core resource is distributed a Windows system mutex (MUTEX); That is:
1, according to the core resource number, statement system resource Cmutex m_Mutex[n]:
2, discharge all system resource, so that the test thread is fought for resource m_Mutex.Release ();
(2) respectively test and switched to the test thread synchronization contention system mutex that test mode or port are activated in the thread, the test thread that obtains system's mutex obtains the right to use of core resource, the test thread waits that does not obtain system's mutex participates in synchronous contention system mutex next time, does not switch to the test thread that test mode or port be not activated and can switch to test mode simultaneously or activate port; The contention system mutex specifically comprises the steps: synchronously
A, test thread contention system core resource m, occupation mode:
WaitForSingleObject(m_Mutex[m],WAITTIME);
When B, mutual exclusion test, stand-by period WAITTIME can be set to unlimited wait, promptly can be set to INFINITE;
The test thread of C, competitive resource is waited for always, up to obtaining system resource m_Mutex[m], this moment, expression obtained corresponding core resource m.
(3) the test thread of system's mutex uses core resource to test, delivery system mutex immediately after test is finished;
Whether (four) disconnected also have the test thread of not testing, if having, changes step (two) over to, if do not have, then finishes test.
Because whole test process is launched around core resource, system start-up a plurality of test threads, in actual mechanical process, be that each core resource distributes system's mutex, the thread that has only obtained this mutex can obtain resource, needs to discharge this mutex after test is finished.Do not obtain the port of test core resource, before obtaining core resource, can earlier state be switched to test mode, in the test service test process, it is preceding to obtain operational trials core resource (SmartBits/IXIA), can activate port earlier, go competition to obtain core resource again after finishing activation, so just state can be switched and port activation operates in other ports and uses in the process that core resources test executed in parallel to finish, see on the whole, our handover operation and activation manipulation are equal to nothing the consumption systems testing time, system test time has utilized core resource to greatest extent by the testing time decision of core resource, has improved testing efficiency.

Claims (3)

1, a kind of multithread testing method is characterized in that, may further comprise the steps:
(1) a plurality of test threads of system start-up are for each core resource is distributed system's mutex;
(2) respectively test thread synchronization contention system mutex, the test thread that obtains system's mutex obtains the right to use of core resource, the test thread waits that does not obtain system's mutex participates in synchronous contention system mutex next time, and the test thread that participates in synchronous contention system mutex is meant and switches to the test thread that test mode or port are activated;
(3) the test thread that obtains system's mutex uses core resource to test, delivery system mutex immediately after test is finished, when the test thread that obtains system's mutex uses core resource to test, do not switch to the test thread that test mode or port be not activated and to switch to test mode simultaneously or activate port;
(4) judge whether to also have the not test thread of test,, change step (two) over to,, then finish test if do not have if having.
2, multithread testing method as claimed in claim 1 is characterized in that, described step (one) may further comprise the steps:
(1) according to the core resource number, statement system resource;
(2) discharge all system resource, so that the test thread is fought for resource.
3, multithread testing method as claimed in claim 1 or 2 is characterized in that, the synchronous contention system mutex in the described step (two) specifically comprises the steps:
A, test thread contention system core resource;
When B, mutual exclusion test, the stand-by period can be set to unlimited wait;
The test thread of C, competitive resource is waited for always, up to obtaining system resource.
CNB021317089A 2002-09-03 2002-09-03 Multithreading test method utilized in tester for communication devices Expired - Fee Related CN1245810C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021317089A CN1245810C (en) 2002-09-03 2002-09-03 Multithreading test method utilized in tester for communication devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021317089A CN1245810C (en) 2002-09-03 2002-09-03 Multithreading test method utilized in tester for communication devices

Publications (2)

Publication Number Publication Date
CN1481089A CN1481089A (en) 2004-03-10
CN1245810C true CN1245810C (en) 2006-03-15

Family

ID=34145000

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021317089A Expired - Fee Related CN1245810C (en) 2002-09-03 2002-09-03 Multithreading test method utilized in tester for communication devices

Country Status (1)

Country Link
CN (1) CN1245810C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100336027C (en) * 2004-04-13 2007-09-05 英业达股份有限公司 Multiple mode test syste mand its method under multiple mutual repulsion conditions
CN100389626C (en) * 2005-06-02 2008-05-21 上海华为技术有限公司 Method for preventing resources of service in system from leak
CN100466709C (en) * 2005-12-31 2009-03-04 英业达股份有限公司 Portable multimedia recording and playing apparatus and multithread testing method
CN104660465B (en) * 2015-01-30 2018-04-24 深圳市极致汇仪科技有限公司 A kind of more DUT parallel test methods and system
CN105376108B (en) * 2015-10-10 2018-11-27 普联技术有限公司 A kind of parallel test system and test method
CN112578260B (en) * 2019-09-29 2022-06-28 北京君正集成电路股份有限公司 Method for improving chip testing efficiency based on multithreading technology
CN112415307B (en) * 2020-11-03 2023-01-17 北京机电工程研究所 ATS instrument resource control method for parallel test
CN113358924B (en) * 2021-04-30 2022-12-06 南方电网数字电网研究院有限公司 Multithreading double-core smart electric meter time-sharing metering processing method and device

Also Published As

Publication number Publication date
CN1481089A (en) 2004-03-10

Similar Documents

Publication Publication Date Title
CN101917306B (en) Method, system and device for automatic test
CN1245810C (en) Multithreading test method utilized in tester for communication devices
CN1859263A (en) Cell re-ordering method, cell processing method and device using said method and device
WO2024032017A1 (en) Multi-core parallel simulation method and platform architecture for realizing multi-core parallel simulation
CN111367652A (en) Task scheduling processing system and method of embedded real-time operating system
CN102012845B (en) Method for improving utilization rate of automatic testing resources
CN1859022A (en) Communication device and method for realizing master control board and service board master and slave conversion
CN1856148A (en) Management of business processing resourse in communication system
CN102360313B (en) Performance acceleration method of heterogeneous multi-core computing platform on chip
WO2011160490A1 (en) Multipoint control unit resource scheduling method and system
CN100351792C (en) A real-time task management and scheduling method
CN102573073B (en) Resource allocation method and system for physical layer of terminal
CN1222185C (en) Grouping business radio resources management method based on channel conservation
CN113726828A (en) High-concurrency credible block chain system and method supporting micro service
CN111985634A (en) Operation method and device of neural network, computer equipment and storage medium
CN1297866C (en) Reset method and reset system for integrated circuit
CN1955990A (en) Flow executing method and system of integral telecommunication platform
CN102064050A (en) Matrix switch
CN1832619A (en) Method for transmitting point-to-point control channel message
CN1722628A (en) Method and system for equipment switching in communication system
CN100351804C (en) Multi-computer detest switch-over device
CN101281473A (en) Method and device for allocating pipe foot
CN102279731A (en) Method for realizing single step execution
CN110995518A (en) Automatic dispatching method for switch test networking
CN1519706A (en) Method for implementing a flow state machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060315

Termination date: 20100903