KR20040028397A - Method for managing memory of mobile server using public library and media recording program for embodying the same - Google Patents

Method for managing memory of mobile server using public library and media recording program for embodying the same Download PDF

Info

Publication number
KR20040028397A
KR20040028397A KR1020020059567A KR20020059567A KR20040028397A KR 20040028397 A KR20040028397 A KR 20040028397A KR 1020020059567 A KR1020020059567 A KR 1020020059567A KR 20020059567 A KR20020059567 A KR 20020059567A KR 20040028397 A KR20040028397 A KR 20040028397A
Authority
KR
South Korea
Prior art keywords
shared library
mobile
client
mobile server
library
Prior art date
Application number
KR1020020059567A
Other languages
Korean (ko)
Other versions
KR100583499B1 (en
Inventor
전종익
김성수
김성일
Original Assignee
주식회사 케이티
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 주식회사 케이티 filed Critical 주식회사 케이티
Priority to KR20020059567A priority Critical patent/KR100583499B1/en
Publication of KR20040028397A publication Critical patent/KR20040028397A/en
Application granted granted Critical
Publication of KR100583499B1 publication Critical patent/KR100583499B1/en

Links

Abstract

PURPOSE: A method for managing a memory of a mobile server using a shared library is provided to commonly use a business transaction logic library of a mobile server for processing transactions of mobile clients processing the same business, thereby reducing an amount of a memory where the library is loaded. CONSTITUTION: When a mobile server receives an access request from a mobile client(S310), the mobile server generates a client response thread for the mobile client(S320). The client response thread analyzes a header of a packet transmitted from the mobile client, compares the header with packet version information, and checks availability of the packet and the mobile client with user accounts(S330). If the header is related to a service start request(S340), the mobile server checks whether a shared library of a service is loaded into a memory(S350). If so, the mobile server increases the number of users using the shared library by 1 (S360), and sets the number of the users to 1(S380). The client response thread transmits a session order handle value informing the mobile client that an access to the mobile server is terminated(S390).

Description

Method for managing memory of mobile server using public library and media recording program for embodying the same}

The present invention relates to a memory management method of a mobile server using a shared library and a recording medium on which a program for implementing the same is recorded. More specifically, when a multi-mobile client accesses a mobile server in a distributed environment using wireless communication, A method of managing memory of a mobile server using a shared library and a program for implementing the same, using a shared library of a mobile server's business processing logic library to process a transaction of mobile clients processing the same task. It is about the medium.

In general, in a distributed environment using wireless communication, when multiple clients and servers need to communicate using TCP / IP sockets, when multiple clients establish a session with each server, the client's transaction work The library for processing is also loaded into memory for each client.

Therefore, when the number of simultaneous connections of the client increases, the memory of the server for processing the client's transaction is required to increase the load of the server and reduce the efficiency of the memory.

In order to solve the above problems, it is an object of the present invention to reduce the memory utilization of the mobile server of the wireless communication system.

1 is a block diagram of a wireless communication system to which the present invention is applied.

2 is a flowchart of a memory management method of a mobile server using a shared library according to the present invention;

3 is a diagram illustrating a form of a packet regarding a service start request transmitted from the mobile client of FIG. 1 to a mobile server;

4 is a diagram illustrating a form of a response packet for a service start request transmitted from the mobile server of FIG. 1 to a mobile client.

FIG. 5 illustrates the form of a packet relating to a transaction request and a service release request sent from the mobile client of FIG. 1 to the mobile server; FIG.

To this end, the memory management method of a mobile server using a shared library according to the present invention includes a first process of connecting a session through authentication when a mobile client of a wireless communication distributed environment using a socket transmits a session access message to a mobile server; A second step of determining whether to load the business process shared library according to the transaction request message of the mobile client; A third step of loading the shared library if the shared library is not loaded, and increasing the number of users of the shared library if the shared library is loaded as a result of determining whether the shared library is loaded; A fourth step of processing a transaction using the loaded shared library; A fifth step of determining whether to release the loaded shared library when the mobile client transmits a release message of the session connection; And a sixth step of releasing the shared library if the number of users of the shared library is one, and releasing the shared library if the number of users of the shared library is one, and reducing the number of users if the number of users of the shared library is not one.

Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

1 is a configuration diagram of a wireless communication system to which the present invention is applied, and includes a mobile client 100 and a mobile server 200.

The mobile client 100 is a terminal capable of using wireless data services such as code-division multiple access (CDMA), international mobile telecommunications (2000), wireless LAN, and the like, such as a mobile phone, a personal digital assistant (PDA), and a smart phone. This may be a phone, a wireless LAN notebook, or the like.

The mobile server 200 is a system having a server process using a socket based on TCP / IP, and includes a session manager 210, a client thread thread 220, and a shared library 230.

The session manager 210 generates a client response thread 220 when the mobile client 100 connects to the server 200.

The client response thread 220 is generated by the session manager 210 according to the connection of the mobile client 100, and analyzes the header of the message requested by the mobile client 100 to perform a task accordingly.

The shared library 230 is a library shared by a plurality of client response threads 220 for business processing. When each client response thread 220 performs the same business processing, each of the client interaction threads 220 processes the business. Rather than loading and using each required library in memory, the shared library 230 is used jointly to save memory for loading a library required for business processing.

2 is a flowchart illustrating a memory management method of a mobile server using a shared library according to the present invention.

The mobile server 200 always waits for a connection of the mobile client 100 and receives a connection request from the mobile client 100 (S310), and generates a client response thread 220 for the mobile client 100. (S320).

The generated client response thread 220 analyzes the header of the packet transmitted from the mobile client 100, compares packet version information, and checks the validity of the packet, the validity of the mobile client 100, and a user account (S330). .

As a result of the check, if the header of the packet transmitted from the mobile client 100 relates to the service start request (S340), it is checked whether the shared library of the corresponding service is loaded in the memory (S350).

If the shared library is already loaded in memory, increase the number of users to use this shared library by 1 (S360), otherwise load the shared library of the corresponding service into the memory (S370) and set the number of users to 1 (S380). .

When the loading of the shared library required for the service is finished, the client response thread 220 transmits a session sequence handle value indicating that the connection to the mobile server 200 required for using the service is completed (S390).

In this case, as shown in FIG. 3, the packet regarding the service start request transmitted from the mobile client 100 to the mobile server 200 includes packet version information and transaction type information in a header, and a body provides a service. Contains user account and password information for user authentication.

The response packet of the mobile server 200 according to the service start request of the mobile client 100 includes packet version information and transaction type information in a header, and the body includes a mobile client ( 100) includes information on whether the connection was successful and the session sequence handle value sent when the connection is successful.

When the mobile client 100 and the mobile server 200 are connected as described above, the mobile client 100 requests a transaction required for the service.

Accordingly, the client response thread 220 analyzes the header of the packet transmitted from the mobile client 100 (S330), and if the header of the packet relates to the request of the transaction (S400), the client response thread 220 processes the transaction. (S410).

That is, the client response thread 220 processes the task using the shared library loaded in the memory, and transmits the response to the mobile client 100 by putting the response in the body of the packet.

As shown in FIG. 5, the packet related to the transaction includes the session sequence handle value received from the mobile server 200 in addition to the packet version information and the transaction information in the header. To be handled.

In this way, when the mobile client 100 performs transaction processing, the mobile server 200 requests the service release.

Accordingly, if the client response thread 220 analyzes the header of the packet transmitted from the mobile client 100 (S330) and the service release request (S420), the number of users using the shared library is checked.

When the number of users using the shared library is checked and the number of users is 1 (S430), the shared library is released from the memory (S440) and the number of users is set to 0 (S450).

If the number of users using the shared library is not 1, the number of users is reduced by 1 because it is being used by another client response thread (S460).

Here, the packet of the mobile client 100 regarding the service release request is the same as the packet regarding the transaction request of FIG. 5, but the content of the body is about service release and is different from the body of the packet regarding the transaction request. .

As described above, the present invention has the effect of reducing the memory usage of the mobile server by loading the shared library into the memory to process transactions of multiple clients in a wireless communication distributed environment.

Claims (3)

  1. A first step of connecting a session through authentication when a mobile client of a wireless communication distributed environment using a socket transmits a session access message to a mobile server;
    A second step of determining whether to load a business process shared library according to the transaction request message of the mobile client;
    A third step of loading the shared library if the shared library is not loaded, and increasing the number of users of the shared library if the shared library is loaded as a result of determining whether the shared library is loaded;
    A fourth step of processing the transaction by using the loaded shared library;
    A fifth step of determining whether the loaded shared library is released when the mobile client transmits a release message of the session connection; And
    And a sixth process of releasing the shared library when the number of users of the shared library is 1 and releasing the shared library, and reducing the number of users if the number of users of the shared library is not 1. Memory management method of mobile server using library.
  2. The method of claim 1,
    In the first process, the mobile server informs the session connection by transmitting a session sequence handle value to the mobile client,
    The session sequence handle value is used to determine the validity of the transaction request message of the second process and the release message of the session connection of the fifth process.
  3. A recording medium having recorded thereon a program for implementing an algorithm for performing the processes of claim 1.
KR20020059567A 2002-09-30 2002-09-30 Method for managing memory of mobile server using public library and media recording program for embodying the same KR100583499B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR20020059567A KR100583499B1 (en) 2002-09-30 2002-09-30 Method for managing memory of mobile server using public library and media recording program for embodying the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR20020059567A KR100583499B1 (en) 2002-09-30 2002-09-30 Method for managing memory of mobile server using public library and media recording program for embodying the same

Publications (2)

Publication Number Publication Date
KR20040028397A true KR20040028397A (en) 2004-04-03
KR100583499B1 KR100583499B1 (en) 2006-05-24

Family

ID=37330607

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20020059567A KR100583499B1 (en) 2002-09-30 2002-09-30 Method for managing memory of mobile server using public library and media recording program for embodying the same

Country Status (1)

Country Link
KR (1) KR100583499B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101041377B1 (en) * 2008-08-22 2011-06-15 김남평 Cam apparatus of foodstuffs a vessels hermetic packing machine
US8352580B2 (en) 2008-11-21 2013-01-08 Samsung Electronics Co., Ltd. Server and method for providing mobile web service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101041377B1 (en) * 2008-08-22 2011-06-15 김남평 Cam apparatus of foodstuffs a vessels hermetic packing machine
US8352580B2 (en) 2008-11-21 2013-01-08 Samsung Electronics Co., Ltd. Server and method for providing mobile web service
US9237113B2 (en) 2008-11-21 2016-01-12 Samsung Electronics Co., Ltd. Server and method for providing mobile web service

Also Published As

Publication number Publication date
KR100583499B1 (en) 2006-05-24

Similar Documents

Publication Publication Date Title
CN104429037B8 (en) Method, equipment and system for being connected to communication equipment
US20150213134A1 (en) Data query method and system and storage medium
US8707394B2 (en) System and method for creating a secure trusted social network
CN102196035B (en) For providing the method and system of unified web service discovery
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
US8782240B2 (en) Resource allocation using shared resource pools
US7996912B2 (en) Method and system for monitoring online computer network behavior and creating online behavior profiles
US8001254B1 (en) Translating switch and method
US7676516B2 (en) System and method for the optimization of database access in data base networks
US20150106431A1 (en) Method and system for distributing load by redirecting traffic
US6988140B2 (en) Mechanism for servicing connections by disassociating processing resources from idle connections and monitoring the idle connections for activity
US6839761B2 (en) Methods and systems for authentication through multiple proxy servers that require different authentication data
US9015227B2 (en) Distributed data processing system
US6704678B2 (en) Method and apparatus for downloading correct software to an electrical hardware platform
US8621031B2 (en) Method and apparatus using connection pools in communication networks
US20130013779A1 (en) Efficient service discovery for peer-to-peer networking devices
US7640246B2 (en) Method and system for providing content
US6898633B1 (en) Selecting a server to service client requests
US7761876B2 (en) Method and system for balancing the load on media processors based upon CPU utilization information
AU2008323784B2 (en) Network rating
US7680848B2 (en) Reliable and scalable multi-tenant asynchronous processing
US7640299B2 (en) Optimizing communication using scaleable peer groups
US7702917B2 (en) Data transfer using hyper-text transfer protocol (HTTP) query strings
US9083540B2 (en) Method and apparatus for listening for incoming calls on multiple port/socket combinations
JP3777302B2 (en) Communication distribution control device and storage medium storing communication distribution program

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20110509

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee