CN106250231A - Computing system and method for calculating stack size - Google Patents

Computing system and method for calculating stack size Download PDF

Info

Publication number
CN106250231A
CN106250231A CN201610293173.6A CN201610293173A CN106250231A CN 106250231 A CN106250231 A CN 106250231A CN 201610293173 A CN201610293173 A CN 201610293173A CN 106250231 A CN106250231 A CN 106250231A
Authority
CN
China
Prior art keywords
storehouse
mode
thread
maximum
size
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
CN201610293173.6A
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.)
THROUGHTEK CO Ltd
Throughtek Technology Shenzhen Co ltd
Original Assignee
THROUGHTEK CO Ltd
Throughtek Technology Shenzhen 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 THROUGHTEK CO Ltd, Throughtek Technology Shenzhen Co ltd filed Critical THROUGHTEK CO Ltd
Publication of CN106250231A publication Critical patent/CN106250231A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Abstract

The invention relates to a computing system and a method for calculating stack size. The detection unit detects a working mode running under a specific program operating environment to obtain at least one working mode parameter. The control unit controls the application program to start one or more corresponding threads according to the working mode parameters and executes at least one corresponding function from the started threads. The computing unit records stack usage of each function in execution, compares the stack usage of the maximum value from each recorded stack usage, and uses the stack usage of the maximum value as the stack size of the maximum value when the program of the working mode runs, so as to correspondingly configure the storage space of the appropriate stack based on the stack size of the maximum value.

Description

Calculate the calculating system and method for storehouse size
Technical field
The present invention is related to a kind of calculating system and method calculating storehouse size, and espespecially one is grasped for specific program The mode of operation making to be run under environment carries out the calculating system and method for storehouse size calculating.
Background technology
The configuration of memory space is often the project of program designer's top concern.The demand performed based on program, joins Put appropriately sized memory space, be possible not only to provide enough memory spaces to keep in information when program is run, and avoid to Give excessive memory space to reduce the waste of memory space.
Program in the process of implementation, it is generally required to the memory space of three types (Memory space) is kept in not respectively With the information of type, such as: global space (global space), stackeding space (heap space), stack space (stack space).Global space is used for keeping in global variable and static variable etc. information, and stackeding space is for temporary dynamically distribution Information, and stack space is used for keeping in local variable, function parameter etc. information.
Global space (global space), stackeding space (heap space) and stack space (stack space) can Overall size (global size) when performing with the thread (Thread) according to calculation procedure, accumulation size (heap size) And storehouse size (stack size) and corresponding configuration.It is said that in general, overall situation size and accumulation size are easy compared to storehouse size In calculating.Therefore, in complicated program, the calculating degree of there be difficulties involved when of storehouse size.
In view of this, the present invention will propose the computing mechanism of a kind of storehouse size, and its mechanism can calculate journey simply Storehouse size when the thread of sequence performs, and configure the storage sky of suitable storehouse with correspondence according to the storehouse size calculated Between, it will it is the technical purpose to be reached of the present invention.
Summary of the invention
The technical problem to be solved in the present invention is, it is provided that a kind of calculating system and method calculating storehouse size, its meter Calculation system can be applied in specific procedure operation environment, and when the mode of operation under procedure operation environment is run The storehouse size of big value calculates, then, storehouse size based on the maximum belonging to mode of operation and corresponding configuration is suitable Storehouse memory space.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of calculating system calculating storehouse size And method.
In the method for calculating storehouse size of the present invention, comprise the following steps:
The mode of operation that detecting is run under specific procedure operation environment is to obtain at least one mode of operation parameter;
Thering is provided application program, wherein said application program includes a plurality of thread, and each described thread includes a plurality of letter Number;
Make described application program according to described mode of operation parameter to start the thread of one or more correspondence and to open from described Dynamic thread performs function corresponding described at least;
The storehouse recording executory each described function uses;And
The storehouse comparing maximum from each described storehouse of record uses uses using as described mode of operation The storehouse size of maximum during operation.
Alternatively, further comprising the steps of:
The storehouse size of the described maximum transmitting described mode of operation parameter and correspondence thereof is described with record to data base The storehouse size of the described maximum of mode of operation parameter and correspondence thereof is in the database.
Alternatively, described specific procedure operation environment is network attachment procedure operating environment, and described mode of operation is net Network connection mode, and described mode of operation parameter is for connecting setup parameter.
Alternatively, when calculating system utilizes described network connection mode to connect the network equipment, described application program is according to institute State connection setup parameter to start one or more described thread being associated with described network connection mode and from the line of described startup Performing function corresponding described at least in journey, the storehouse recording executory each described function uses, each from record Described storehouse compares described in when the storehouse of described maximum uses to run as described network connection mode in using The storehouse size of big value.
In the calculating system of calculating storehouse size of the present invention, it is applied to calculate storehouse when application program performs Size, described application program includes there is a plurality of thread, and each described thread includes a plurality of function, described calculating system bag Include:
Detecting unit, the mode of operation that detecting is run under specific procedure operation environment is to obtain at least one Working mould Formula parameter;
Control unit, connects described detecting unit and described application program, according to described mode of operation parameter to control institute State the thread of one or more correspondence of application program launching and from the thread of described startup, perform function corresponding described at least; And
Computing unit, connects described control unit, and including stack record device and comparator, described stack record device record is held The storehouse of each described function in row uses, and described comparator compares maximum from each described storehouse of record uses Storehouse use using the storehouse size as the maximum during operation of described mode of operation.
Alternatively, also including that data base, described data base connect described control unit, described control unit transmits described work The storehouse size of the described maximum of operation mode parameter and correspondence thereof to described data base, with by described mode of operation parameter and The big small records of storehouse of this corresponding maximum is in the database.
Alternatively, described specific procedure operation environment is network attachment procedure operating environment, and described mode of operation is net Network connection mode, and described mode of operation parameter is for connecting setup parameter.
Alternatively, when described calculating system utilizes described network connection mode to connect the network equipment, described application program root According to described connection setup parameter to start one or more described thread being associated with described network connection mode and from described startup Thread in perform described at least one corresponding function, the described stack record device of described computing unit records each executory The described storehouse of described function uses, and the described comparator of described computing unit compares from described each storehouse of record uses Go out the storehouse size of described maximum when the storehouse of described maximum uses to run as described network connection mode.
Alternatively, described calculating grid Connection Service device, described control unit by described mode of operation parameter and The storehouse size of corresponding described maximum is uploaded to described server, with by described in described mode of operation parameter and correspondence thereof The big small records of storehouse of maximum is in described server.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1: the present invention calculates the structural representation of calculating system one embodiment of storehouse size.
Fig. 2: application program of the present invention and the detailed construction schematic diagram of computing unit one embodiment.
Fig. 3: the present invention calculates the structural representation of calculating system one Application Example of storehouse size.
Fig. 4: the present invention calculates system and carries out the structural representation of the Application Example that network is connected with the network equipment.
Fig. 5: application program of the present invention and the detailed construction schematic diagram of computing unit one Application Example.
Fig. 6: the present invention calculates the structural representation of the another Application Example of calculating system of storehouse size.
Fig. 7: the present invention calculates system and carries out network with the network equipment and be connected the structural representation of another Application Example.
Fig. 8: application program of the present invention and the detailed construction schematic diagram of the another Application Example of computing unit.
Fig. 9: the present invention calculates the structural representation of the another Application Example of calculating system of storehouse size.
Figure 10: the present invention calculates system and carries out network with the network equipment and be connected the structural representation of another Application Example.
Figure 11: application program of the present invention and the detailed construction schematic diagram of the another Application Example of computing unit.
Symbol description:
10 calculate system 101 local net network connects
102 point to point networks connect 103 junction networks and connect
11 control unit 13 detecting units
130 mode of operation parameter 131 LANs connect setup parameter
132 point-to-point connection setup parameter 133 relay connection setup parameters
15 application program 17 computing units
171 stack record device 1710 storehouses use
1711 storehouses use 1712 storehouses to use
1713 storehouses use 173 comparators
The storehouse size of storehouse size 1731 maximum of 1730 maximums
The storehouse size of storehouse size 1733 maximum of 1732 maximums
19 data base 30 network equipments
50 network repeaters
Thread_1 thread Thread_2 thread
Thread_3 thread Thread_4 thread
Fun_A function Fun_B function
Fun_C function Fun_D function
Fun_E function Fun_F function
Fun_G function Fun_H function
Fun_I function Fun_J function
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and being embodied as Example, is described in further detail the present invention.Should be appreciated that specific embodiment described herein is only used for explaining this Bright, it is not intended to limit the present invention.
Referring to Fig. 1 and Fig. 2, the respectively present invention calculates the structural representation of calculating system one embodiment of storehouse size And the detailed construction schematic diagram of application program and computing unit one embodiment.As shown in Figures 1 and 2, the present invention calculates system 10 can apply in specific procedure operation environment, its structure include control unit 11, detecting unit 13, application program 15 and Computing unit 17.Detecting unit 13, application program 15 and computing unit 17 connect control unit 11 respectively.
Wherein, detecting unit 13 can detect the mode of operation run under specific program operating environment, to obtain extremely A few mode of operation parameter 130.Application program 15 is the relevant execution program of specific program operating environment, and it includes a plurality of line Journey (Thread_1~4), each thread (Thread_1)/(Thread_2)/(Thread_3)/(Thread_4) includes respectively A plurality of functions, such as: thread (Thread_1) includes function Fun_A, function Fun_B and function Fun_C, thread (Thread_ 2) include that function Fun_D and function Fun_E, thread (Thread_3) include function Fun_F, function Fun_G and function Fun_H, And thread (Thread_4) includes function Fun_I and function Fun_J.
The mode of operation parameter 130 that control unit 11 is detected according to detecting unit 13 starts to control application program 15 The thread (Thread_1) of one or more correspondence, (Thread_2), (Thread_3), (Thread_4) and from start thread Perform at least one pair of function answered.
Computing unit 17 includes stack record device 171 and comparator 173.Stack record device 171 is used for recording executory The storehouse of each function uses (stack usage) 1710.Comparator 173 uses 1710 from each storehouse of record and compares Maximum, using the storehouse of maximum is used 1710 as mode of operation run time storehouse size (the max stack of maximum size)1730.So, the storehouse size 1730 of maximum can be calculated.Afterwards, based on the maximum belonging to mode of operation Storehouse size 1730 and the memory space of the suitable storehouse of corresponding configuration, provide temporary with the memory space via the storehouse of configuration Deposit information when mode of operation is run, such as: local variable or function parameter.
In one embodiment of the invention, calculating system 10 can be computer software, and it can be built into computer dress Among putting.
Furthermore, in further embodiment of this invention, calculating system 10 also includes data base 19, and it connects control unit 11.Control The storehouse size 1730 of mode of operation parameter 130 and the maximum of correspondence thereof is sent to data base 19 by unit 11 processed, with by work The storehouse size 1730 of the maximum of operation mode parameter 130 and correspondence thereof records in data base 19.In the present invention, data base 19 can be the storage media in computer installation or the webserver.
This case technology can actual be applied among the procedure operation environment that heterogeneous networks connects, to connect for each network Procedure operation environment under network connection mode carry out the calculating of storehouse size, its detailed content is as described below:
Referring to Fig. 3, Fig. 4 and Fig. 5, the respectively present invention calculates the knot of calculating system one Application Example of storehouse size Structure schematic diagram, calculating system carry out with the network equipment network be connected the structural representation of an Application Example and application program with The detailed construction schematic diagram of computing unit one Application Example.In the present embodiment, calculating system 10 is applied in network connection During procedure operation environment, its mode of operation run can be the network connection mode of LAN.Calculating system 10 is via office Territory net network connects 101 and carries out network with the network equipment 30 and be connected.
When detecting unit 13 detects the network connection mode that calculating system 10 operates in LAN, can obtain to A few LAN connects setup parameter 131.Control unit 11 control application program 15 start one be associated with LAN connect Thread (Thread_1).
After thread (Thread_1) starts, control unit 11 connects setup parameter 131 according to LAN and sequentially performs correspondence Function (Fun_A) and function (Fun_C), the stack record device 171 of computing unit 17 records function (Fun_A) and function respectively (Fun_C) storehouse uses (S=50) 1711, (S=80) 1711.
After each function (Fun_A), (Fun_C) all executeds of thread (Thread_1), the ratio of computing unit 17 The storehouse comparing maximum (S=50) 1711, (S=80) 1711 is used to use (S=compared with device 173 from each storehouse of record 80) 1711, and maximum storehouse is used (S=80) 1711 as LAN connection mode run time the storehouse of maximum big Little (S=80) 1731.Then, the storehouse size (S=80) 1731 of the maximum belonging to LAN connection mode can be calculated. Afterwards, storehouse size (S=80) 1731 based on maximum and configure the storehouse memory space of corresponding size, with via configuration Storehouse memory space and provide temporary LAN network connection mode run time information.
Furthermore, after the storehouse size (S=80) 1731 of maximum has calculated, LAN is connected setting by control unit 11 The storehouse size (S=80) 1731 of the maximum of parameter 131 and correspondence thereof is sent to data base 19, to store it in data base Among 19.
Referring to Fig. 6, Fig. 7 and Fig. 8, the respectively present invention calculates the another Application Example of calculating system of storehouse size Structural representation, calculating system carry out with the network equipment network be connected the structural representation of another embodiment and application program with The detailed construction schematic diagram of the another Application Example of computing unit.In the present embodiment, calculating system 10 is applied and is connected at network During procedure operation environment, its specific operation mode run can be that the network of point-to-point (Peer to Peer, P2P) connects Pattern.Calculating system 10 connects 102 via point to point network and carries out network with the network equipment 30 and be connected.
When detecting unit 13 detect calculating system 10 operate in point-to-point network connection mode time, can obtain to A little less to a connection setup parameter 132.Control unit 11 controls application program 15 and starts multiple point-to-point connection that is associated with Thread (Thread_1), (Thread_3).
After thread (Thread_1) starts, control unit 11 sequentially performs correspondence according to point-to-point connection setup parameter 132 Function (Fun_A) and function (Fun_C), the stack record device 171 of computing unit 17 records function (Fun_A) and function (Fun_C) storehouse uses (S=50) 1712, (S=80) 1712;Continue, after thread (Thread_3) starts, control unit 11 Function (Fun_G) and subfunction (Fun_H), the computing unit of correspondence is sequentially performed according to point-to-point connection setup parameter 132 The stack record device 171 of 17 continues the storehouse that always adds of record function (Fun_G) and subfunction (Fun_H) thereof and uses (S=50+70 =120) 1712.
As each function (Fun_A) of thread (Thread_1) and thread (Thread_3), (Fun_C), (Fun_G), (Fun_ H), all after executed, the comparator 173 of computing unit 17 uses (S=50) 1712, (S=80) from each storehouse of record 1712, the storehouse comparing maximum in (S=120) 1712 uses (S=120) 1712, and maximum storehouse is used (S= 120) the storehouse size (S=120) 1732 of 1712 maximums when running as point-to-point network connection mode.Then, put right The storehouse size (S=120) 1732 of some maximum belonging to connection mode can be calculated.Afterwards, heap based on maximum Stack size (S=120) 1732 and configure the storehouse memory space of corresponding size, provide with the storehouse memory space via configuration Information when temporary point-to-point network connection mode runs.
Furthermore, after the storehouse size (S=120) 1732 of maximum has calculated, point-to-point connection is set by control unit 11 The storehouse size (S=120) 1732 of the maximum determining parameter 132 and correspondence thereof is sent to data base 19, to store it in number Among storehouse 19.
Further, in the present embodiment, data base 19 has point-to-point connection setup parameter 132 and correspondence thereof except record Outside the storehouse size 1732 of big value, the connection setup parameter of other network connection mode the most recordable and the maximum of storehouse size thereof Value, has the storehouse size 1731 of the maximum of LAN connection setup parameter 131 and correspondence thereof such as record.
Referring to Fig. 9, Figure 10 and Figure 11, the respectively present invention calculates the another Application Example of calculating system of storehouse size Structural representation, calculating system carries out network and is connected structural representation and the application program of another embodiment with the network equipment The detailed construction schematic diagram of Application Example another with computing unit.In the present embodiment, calculating system 10 is applied at network even When connecing procedure operation environment, its specific operation mode run can be the network connection mode of relaying (Relay).Calculate system System 10 can connect 103 by the junction network that network repeater 50 is provided and carry out network with the network equipment 30 and be connected.
When detecting unit 13 detect calculating system 10 operate in relay connection pattern time, at least one relaying can be obtained Connect setup parameter 133.Control unit 11 controls application program 15 and starts multiple thread (Thread_ being associated with relay connection 1)、(Thread_4)。
After thread (Thread_1) starts, control unit 11 sequentially performs correspondence according to relay connection setup parameter 133 Function (Fun_B) and function (Fun_C), the stack record device 171 of computing unit 17 records function (Fun_B) and function (Fun_ C) storehouse uses (S=40) 1713, (S=80) 1713;Continue, after thread (Thread_4) starts, control unit 11 basis Relay connection setup parameter 133 performs function (Fun_I) and function (Fun_J), the stack record device of computing unit 17 of correspondence The storehouse of 171 records function (Fun_I) and function (Fun_J) uses (S=60) 1713, (S=90) 1713.
When thread (Thread_1), each function (Fun_B) of (Thread_4), (Fun_C), (Fun_I), (Fun_J) all After executed, the comparator 173 of computing unit 17 uses (S=40) 1713, (S=80) from each storehouse of record 1713, the storehouse comparing maximum in (S=60) 1713, (S=90) 1713 uses (S=90) 1713, and by maximum storehouse The storehouse size (S=90) 1733 of maximum when using (S=90) 1713 to run as the network connection mode relayed.Then, The storehouse size (S=90) 1733 of the maximum belonging to network connection mode of relaying can be calculated.Afterwards, based on maximum The storehouse size (S=90) 1733 of value and configure the storehouse memory space of corresponding size, with the storehouse memory space via configuration And information when providing the network connection mode of temporary relaying to run.
Furthermore, after the storehouse size (S=90) 1733 of maximum has calculated, relay connection is set ginseng by control unit 11 Several 133 and the storehouse size (S=90) 1733 of maximum of correspondence be sent to data base 19, to store it in data base 19 Among.
Also, in the embodiment of the present invention, network repeater 50 can be self-contained unit or network relative to calculating system 10 Server, its network calculated between system 10 and the network equipment 30 for assisting construction is connected.
Further, in the present embodiment, data base 19 is except recording the maximum having relay connection setup parameter 133 and correspondence thereof Outside the storehouse size 1733 of value, also can record the heap that LAN connects the maximum of setup parameter 131 and correspondence thereof further The storehouse size 1732 of stack size 1731 and point-to-point connection setup parameter 132 and corresponding maximum thereof.
Or, in further embodiment of this invention, data base 19 can be the webserver, and calculating system 10 connects network service Device, with by storehouse size 1731,1732,1733 record of this maximum of mode of operation parameter 131,132,133 and correspondence thereof In the webserver.User can the Telnet webserver to obtain mode of operation parameter 131,132,133 and right The storehouse size 1731,1732,1733 of this maximum answered.
From the above, the present invention calculates system 10 respectively for the network connection mode of LAN, point-to-point network even Connect the thread corresponding to the network connection mode of pattern, relaying (Thread_1~4) and carry out the calculating of storehouse size, in terms of respectively Calculate the storehouse size 1731,1732,1733 of affiliated maximum, and by the network connection mode of LAN, point-to-point net Network connection mode, the storehouse size 1731,1732,1733 of the maximum belonging to network connection mode of relaying are separately recorded in number Among storehouse 19.Then, the network connection mode of the user of electronic installation LAN to be used, point-to-point network connection mode The network connection mode of formula or relaying carries out network when being connected with network relevant device, and calculating system 10 also can provide relatedness The storehouse size 1731,1732,1733 of maximum, then, the user of electronic installation can be according to the storehouse size of maximum 1731, the storehouse memory space that 1732,1733 configurations are corresponding.
Via above-mentioned, the storehouse size 1731,1732,1733 by the maximum calculated is empty to configure storehouse storage Between, when network attachment procedure carries out procedure operation, the storehouse memory space being possible not only to provide enough is kept in network and is connected journey Information during sequence operation, and avoid the waste giving excessive storehouse memory space to reduce memory space.
Additionally, in one embodiment of the invention, calculating system 10 can be independent calculating device;Or, the present invention another In embodiment, calculating system 10 for be configured at can networked electronic device (such as: IPcam, intelligent appliance, mobile phone, intelligent doorbell etc. Deng) in system, its type of system can be chip, firmware, or is software form.
Furthermore, the above-mentioned each network connection mode for being run under network attachment procedure operating environment of the present invention carries out heap The calculating of stack size is only a specifically application, knows this those skilled in the art it would be appreciated that the technology of the present invention also can be answered It is used among other kinds of procedure operation environment (such as: different operating system), and for other kinds of procedure operation Each mode of operation under environment carries out the calculating of storehouse size respectively, here, belong to the interest field that the present invention to be advocated.
As described above, only presently preferred embodiments of the present invention, not it is used for limiting the scope that the present invention implements, i.e. All according to the impartial change for it of the shape described in claims of the present invention, structure, feature and spiritual institute and modification, all should be included in In protection scope of the present invention.

Claims (9)

1. the method calculating storehouse size, it is characterised in that said method comprising the steps of:
The mode of operation that detecting is run under specific procedure operation environment is to obtain at least one mode of operation parameter;
Thering is provided application program, wherein said application program includes a plurality of thread, and each described thread includes a plurality of function;
Make described application program according to described mode of operation parameter to start the thread of one or more correspondence and from described startup Thread performs function corresponding described at least;
The storehouse recording executory each described function uses;And
The storehouse comparing maximum from each described storehouse of record uses uses using the operation as described mode of operation Time the storehouse size of maximum.
Method the most according to claim 1, it is characterised in that further comprising the steps of:
Transmit the storehouse size of described maximum of described mode of operation parameter and correspondence thereof to data base to record described work The storehouse size of the described maximum of mode parameter and correspondence thereof is in the database.
Method the most according to claim 1, it is characterised in that described specific procedure operation environment is network attachment procedure Operating environment, described mode of operation is network connection mode, and described mode of operation parameter is for connecting setup parameter.
Method the most according to claim 3, it is characterised in that calculating system utilizes described network connection mode to connect network During equipment, described application program is associated with described network connection mode according to described connection setup parameter to start one or more Described thread and perform described at least one corresponding function from the thread of described startup, records executory each described function Described storehouse use, from record each described storehouse use compare described maximum storehouse use using as described The storehouse size of described maximum when network connection mode runs.
5. the calculating system calculating storehouse size, it is characterised in that be applied to calculate storehouse when application program performs big Little, described application program includes there is a plurality of thread, and each described thread includes a plurality of function, described calculating system bag Include:
Detecting unit, the mode of operation that detecting is run under specific procedure operation environment is to obtain at least one mode of operation ginseng Number;
Control unit, connects described detecting unit and described application program, according to described mode of operation parameter to control described answering Start the thread of one or more correspondence by program and from the thread of described startup, perform function corresponding described at least;And
Computing unit, connects described control unit, including stack record device and comparator, during described stack record device record performs The storehouse of each described function use, described comparator compares the heap of maximum from each described storehouse of record uses Stack uses using the storehouse size as the maximum during operation of described mode of operation.
Calculating system the most according to claim 5, it is characterised in that also include that data base, described data base connect described Control unit, described control unit transmits the storehouse size of the described maximum of described mode of operation parameter and correspondence thereof to described Data base, with by the big small records of storehouse of this maximum of described mode of operation parameter and correspondence thereof in the database.
Calculating system the most according to claim 5, it is characterised in that described specific procedure operation environment is that network connects Procedure operation environment, described mode of operation is network connection mode, and described mode of operation parameter is for connecting setup parameter.
Calculating system the most according to claim 7, it is characterised in that described calculating system utilizes described network connection mode When connecting the network equipment, described application program is associated with described network even according to described connection setup parameter to start one or more Connect the described thread of pattern and from the thread of described startup, perform function corresponding described at least, the institute of described computing unit State stack record device record each executory described function described storehouse use, the described comparator of described computing unit from The each described storehouse of record compares the storehouse of described maximum and uses to run as described network connection mode in using Time the storehouse size of described maximum.
Calculating system the most according to claim 5, it is characterised in that described calculating grid Connection Service device, described The storehouse size of described mode of operation parameter and the described maximum of correspondence thereof is uploaded to described server by control unit, to incite somebody to action The big small records of storehouse of the described maximum of described mode of operation parameter and correspondence thereof is in described server.
CN201610293173.6A 2016-03-31 2016-05-04 Computing system and method for calculating stack size Pending CN106250231A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW105110340 2016-03-31
TW105110340A TWI647565B (en) 2016-03-31 2016-03-31 Calculation system and method for calculating stack size

Publications (1)

Publication Number Publication Date
CN106250231A true CN106250231A (en) 2016-12-21

Family

ID=57626874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610293173.6A Pending CN106250231A (en) 2016-03-31 2016-05-04 Computing system and method for calculating stack size

Country Status (2)

Country Link
CN (1) CN106250231A (en)
TW (1) TWI647565B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158678A1 (en) * 2003-02-07 2004-08-12 Industrial Technology Research Institute Method and system for stack-caching method frames
US20060195823A1 (en) * 2005-02-28 2006-08-31 Sap Ag. Memory debugging tool
CN101091166A (en) * 2004-12-30 2007-12-19 英特尔公司 Methods and apparatuses to maintain multiple execution contexts
CN101271408A (en) * 2008-05-07 2008-09-24 浙江大学 Method for analyzing stack use in embedded system
US20100131803A1 (en) * 2008-11-25 2010-05-27 Express Logic Computation of stack usage in embedded computing systems
CN102012833A (en) * 2010-11-09 2011-04-13 北京神舟航天软件技术有限公司 Compilation process intermediate result-based static stack detection method
CN102841858A (en) * 2006-06-06 2012-12-26 高通股份有限公司 Processor core stack extension
CN103988483A (en) * 2011-10-14 2014-08-13 思杰系统有限公司 Systems and methods for dynamic adaptation of network accelerators

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7178002B2 (en) * 2002-07-24 2007-02-13 Sun Microsystems, Inc. Methods and systems for dynamically growing multiple stacks
US20100131698A1 (en) * 2008-11-24 2010-05-27 Tsai Chien-Liang Memory sharing method for flash driver
CN101876923A (en) * 2009-11-27 2010-11-03 中国科学院声学研究所 Method for accurately estimating stack demand in embedded system
CN101777008A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing mobile terminal system thread pool
US8918616B2 (en) * 2011-08-24 2014-12-23 Microsoft Corporation Memory allocation analysis
EP2761464B1 (en) * 2011-09-30 2018-10-24 Intel Corporation Apparatus and method for implementing a multi-level memory hierarchy having different operating modes

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158678A1 (en) * 2003-02-07 2004-08-12 Industrial Technology Research Institute Method and system for stack-caching method frames
CN101091166A (en) * 2004-12-30 2007-12-19 英特尔公司 Methods and apparatuses to maintain multiple execution contexts
US20060195823A1 (en) * 2005-02-28 2006-08-31 Sap Ag. Memory debugging tool
CN102841858A (en) * 2006-06-06 2012-12-26 高通股份有限公司 Processor core stack extension
CN101271408A (en) * 2008-05-07 2008-09-24 浙江大学 Method for analyzing stack use in embedded system
US20100131803A1 (en) * 2008-11-25 2010-05-27 Express Logic Computation of stack usage in embedded computing systems
CN102012833A (en) * 2010-11-09 2011-04-13 北京神舟航天软件技术有限公司 Compilation process intermediate result-based static stack detection method
CN103988483A (en) * 2011-10-14 2014-08-13 思杰系统有限公司 Systems and methods for dynamic adaptation of network accelerators

Also Published As

Publication number Publication date
TWI647565B (en) 2019-01-11
TW201734799A (en) 2017-10-01

Similar Documents

Publication Publication Date Title
CN105934976B (en) The method, apparatus and master-slave network electricity-saving system of master-slave network suspend mode and wake-up
US20130166621A1 (en) Cloud robot system and method of integrating the same
CN105847318A (en) Data processing system, data processing device and data processing method
CN105282583B (en) A kind of remote controler intelligent Matching system and implementation method
CN110429708B (en) Method and system for realizing plug and play of power distribution equipment
CN104267701B (en) The control method and device of smart home newly added equipment
CN103916980B (en) Communicator and its control method
CN109547240B (en) Intelligent device based on edge calculation and access and device analysis method
CN108986821A (en) A kind of method and apparatus that room and device relationships are set
CN107846457A (en) Load-balancing method, device, storage medium and the system of server cluster
CN107809490A (en) The data transmission method of intelligent ship and its information management and control system, device
CN107257308A (en) A kind of control method of smart machine, smart machine and storage medium
CN103634173B (en) Electronic apparatus activating controls equipment, system, methods and procedures
CN105187361B (en) A kind of method for pushing and relevant device, system of application content
CN115187847A (en) Image joint reasoning identification system and method based on cloud edge architecture
JP2014238680A (en) Maintenance device, maintenance program and maintenance method
CN106250231A (en) Computing system and method for calculating stack size
CN109195149A (en) NAN scanning adjusting method and relevant device
CN109360397A (en) The system that method, data dispatching method and the multilist collection that multilist collection is copied are copied
CN106791192A (en) Control the method and device of internet of things equipment
CN107577806A (en) Spacecraft data automated interpretation system and interpretation method
CN107801047A (en) Object designation method, storage medium, electronic equipment and the system that video is made friends
CN106686606B (en) A kind of method and apparatus for disposing WLAN hot spot
CN106416133B (en) The determination method, apparatus and equipment of optimal heart beat cycle
CN110519736A (en) Change planes connection method and the device, computer readable storage medium of bluetooth 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161221

WD01 Invention patent application deemed withdrawn after publication