Thread pool size self-adapting regulating method and concurrency control method applying server

An application server and self-adaptive adjustment technology, applied in the direction of multi-program devices, etc., can solve problems such as the difficulty of system expansion, and achieve the effects of improving system flexibility, simplifying management and configuration, and optimizing performance

Active Publication Date: 2009-02-11
山东乾云信息科技集团有限公司
View PDF0 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The self-adaption problem existing in the thread pool-based concurrent resource management mode can be solved by related technologies of autonomous computing, but how to realize the transition from non-autonomous system to autonomous or semi-autonomous syst

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Thread pool size self-adapting regulating method and concurrency control method applying server
  • Thread pool size self-adapting regulating method and concurrency control method applying server
  • Thread pool size self-adapting regulating method and concurrency control method applying server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0042] This embodiment proposes a non-intrusive, adaptive application server concurrency control method. As the use environment of the method of this embodiment, the application server adopts a simple Java application server, and its sample code content is as shown in code 1:

[0043] Code 1:

[0044] 1 class SimpleServer{

[0045] 2 public void handleSocket(Sockets{

[0046] 3 InputStream in = s.getInputStream();

[0047] 4 ... / / handle socket connection

[0048] 5}

[0049] 6 public void serverStart(){

[0050] 7 socket = serverSocket. accept();

[0051] 8 handleSocket(socket);

[0052] 9 }

[0053] 10}

[0054] In the above code 1, the SimpleServer class implements a simple Java application server to handle the client's Socket connection, which includes a server startup method (lines 6-9) to start the application server, and a Socke...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for adaptively controlling the capacity of a thread pool and a method for concurring and controlling an application server, and belongs to the software technical field. The method for adaptively controlling the capacity of the thread pool is mainly achieved through a hill climbing algorithm; the method for concurring and controlling the application server comprises the following steps: constructing an adaptive concurrency control system according to the method for adaptively controlling the capacity of the thread pool, constructing a concurrent aspect library, and defining an abstract concurrency aspect and an abstract concurrency task processing class; developing a concurrent processing module based on the adaptive concurrency control system and the concurrent aspect library and according to the specific demands of the application server; and carrying out aspect weaving to embed the concurrent processing module into the application server. The invention achieves the decoupling between the application server and the concurrent control module, and provides an adaptive concurrency control mechanism for the application server.

Description

technical field [0001] The present invention relates to a method for self-adaptive adjustment of thread pool capacity, and a method for concurrency control of application servers, in particular to a method for realizing concurrency control of application servers and providing self-adaptive concurrency control capabilities in a non-invasive manner, which belongs to software technology field. Background technique [0002] The application server is a mainstream middleware platform for the Web computing environment, which provides a good support platform for the development, deployment, operation, integration and management of enterprise-level applications. As a new generation of middleware produced in the Web computing environment, the application server solves the problems encountered by middleware in the Internet-oriented Web computing environment. It not only has the high scalability, high availability, high reliability and High-efficiency and other advanced features, and p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/46
Inventor 王伟张文博钟华魏峻黄涛
Owner 山东乾云信息科技集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products