KR20090015476A - Apparatus and method for control to window message - Google Patents

Apparatus and method for control to window message Download PDF

Info

Publication number
KR20090015476A
KR20090015476A KR1020070079814A KR20070079814A KR20090015476A KR 20090015476 A KR20090015476 A KR 20090015476A KR 1020070079814 A KR1020070079814 A KR 1020070079814A KR 20070079814 A KR20070079814 A KR 20070079814A KR 20090015476 A KR20090015476 A KR 20090015476A
Authority
KR
South Korea
Prior art keywords
message
event
window
window message
computer system
Prior art date
Application number
KR1020070079814A
Other languages
Korean (ko)
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 KR1020070079814A priority Critical patent/KR20090015476A/en
Publication of KR20090015476A publication Critical patent/KR20090015476A/en

Links

Images

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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)

Abstract

A computer system including window message processing unit and a message processing method thereof are provided to improve performance of a computer system by searching and processing a window message about corresponding event among window messages peeked in system polling part. A peripheral devices(110) generate an event through arbitrary input operation. The event of the peripheral device generates a message. The message performs a predetermined work of a window application program. If an operating system is started by booting a computer system(100), a system polling part(130) peeks a window message according to the peripheral device. A message que(120) stores the window message peeked by the system polling part. An event checking part(140) accesses a window message corresponding to an event among window messages peeked in the system polling part. An event processing part(150) executes the window message according to a processing result of the event checking part, and removes a message stored in the message que.

Description

Computer system having a window message processing means and a method of processing the message {Apparatus and method for control to window message}

The present invention relates to a computer system, and more particularly, to a computer system and a method for processing the window message that improves system performance by controlling the processing of window messages generated during the operation of the computer system.

The basic architecture of modern computers includes peripheral devices that can communicate information with the external environment. These peripheral devices include keyboards, monitors, tape drives, and communication lines that connect to networks. . In addition, the basic structure of the computer is a hardware for receiving and processing information from the outside and transmitting it back to the outside, a plurality of buses, memory units, input / output controllers, storage devices, and a central processing unit (CPU) for controlling the same. ) Are included. The CPU includes a computer program and executes instructions to manage the operation of the components of another system.

On the other hand, most conventional computer systems process window messages that occur in essentially the same way under the control of the CPU. The message processing is a core task of allowing a Windows application program to perform a predetermined task. The computer system and the window application program generate a message for all events occurring in the window. For example, a window generates a message for every hardware event, such as the user pressing a keyboard or clicking a mouse.

In order to process the window message as described above, the conventional computer system 10 stores the window message corresponding to the event when the window event occurs due to the operation of the peripheral device 11 mounted on the computer system. The message queue 12 is provided. In addition, the window message stored among the plurality of threads operated by the computer system 10 to process the window message stored in the message queue 12 affects any one thread. An event check unit 13 for performing a filtering operation for determining whether the message is) is provided. At this time, in the case of the window message that cannot be processed by any thread as a result of the filtering of the event checker 13, the window message is stored and any thread capable of processing the window message is searched. Thereafter, if it is determined that the window message can be processed by any thread during the search, the window message is controlled to be executed.

When the window message is executed by the filtering operation in the event checker 13, an event processor 14 for removing the window message from the message queue 12 is provided. .

However, the prior art as described above has the following problems.

In other words, in recent years, as computer specifications continue to develop, it is required that the speed of computer systems be increased. However, when processing a window message as in the prior art, the computer system performance is inferior because unnecessary filtering is continuously performed on the window message generated by any event.

In addition, there is a problem that the message stored in the message queue is overwritten because the speed of processing the message stored in the message queue does not reach the performance of the system, and thus the message is lost.

Accordingly, the present invention has been made to solve the above-mentioned conventional problems, an object of the present invention is to effectively process the window message generated during the operation of the computer system to improve the speed of the system and its window message processing method To provide.

The present invention relates to a computer system and a method for processing the window message thereof, which efficiently process the window message generated during operation of the computer system.

According to a feature of the present invention for achieving the above object, the present invention comprises: a system polling unit for peaking a window message for an event generated by a computer-mounted peripheral device; A message queue in which the window message for each peripheral device is peaked; An event check unit for accessing a window message corresponding to the event among window messages peaked by the message polling unit, when an event occurs; And an event processing unit for executing the window message accessed by the event check unit.

In this case, when the computer system is booted and the OS is driven, the system polling unit sequentially polls a window message corresponding to the event for each peripheral device.

When the window message is executed, the event processor removes the executed window message.

According to another object of the present invention as described above, the present invention comprises the steps of (A) peaking the window message for the event per peripheral device mounted on the computer system; (B) any event during the operation of the computer system Detecting the occurrence of a message and searching for a window message corresponding to the event among the peaked window messages; And (C) executing the searched window message.

In the step (A), when the computer system is booted and the operating system (OS) is started, the window messages of the peripheral devices mounted in the computer system are sequentially polled.

In the step (C), when the window message is executed, the window message is removed.

Meanwhile, step (A), step (B), and step (C) perform independent functions as respective threads.

According to the present invention, when an arbitrary event occurs while the computer is running, the performance of the computer system is improved by searching for and processing a window message for the corresponding event among the window messages that are fitted to the system polling unit. It works.

In addition, the present invention solves the problem that the message is overwritten in the message queue (Que) that occurs because the conventional window message processing speed is less than the performance of the computer system to provide convenience to the user using the computer system It works.

Hereinafter, with reference to the accompanying drawings, a preferred embodiment of a computer system according to the present invention as described above will be described in detail.

Figure 2 is a block diagram showing the internal configuration of a computer system having a window message processing means according to a specific embodiment of the present invention, Figure 3 is a window message processing method according to a specific embodiment of the present invention The flowchart shown is shown.

As shown in FIG. 2, the computer system 100 of the present invention includes peripheral devices 110 that can communicate information with an external environment. The peripheral device 110 may include a keyboard, a monitor, a tape drive, a communication line connected to a network, and the like. The peripheral devices 110 generate an event through an arbitrary input operation, and the event of the peripheral device 110 generates a message. The message causes the Windows application to perform a predetermined task.

When the computer system 100 is booted and an operating system (OS) is started, a window message for each peripheral device corresponding to an event is sequentially provided to the peripheral device 110 mounted on the computer system. A system polling unit 130 peaks in the background.

And a message queue 120 in which a window message peaked by the system polling unit 130 is stored.

When any event occurs in the peripheral device, an event check for searching for and accessing a window message corresponding to the event among window messages peaked in the system polling unit 130 based on the event The unit 140 is provided.

In addition, an event processor 150 for executing a window message and removing a message stored in the message queue 120 according to the processing result of the event checker 140 is provided.

As described above, the computer system 100 includes a system polling unit 130, the event checker 140, and an event processor 150 to determine whether a conventional window message for each thread can be processed. By reducing the computer system performance is improved.

In addition, the computer system 100 includes a storage unit 160 which stores API functions that are basically executed in driving the computer system 100 and an 'accelerator program' for effectively processing the window message of the present invention. . At this time, the 'accelerator program' is preferably implemented as a multi-threaded program. The multithreaded program is software that allows two or more functions to be executed in parallel within the same application. The 'accelerator program' is configured to perform each function as a separate thread (for example, the system polling unit, the event checking unit, and the event processing unit). The storage unit 160 may be provided with various media, such as an EEPROM, a flash memory, an external memory, and the like, according to the capacity of the stored data.

Hereinafter, a window message processing method of a computer system according to an embodiment of the present invention will be described in detail with reference to FIG. 3.

First, when the computer system 100 is booted, the operating system (OS) operates (S100).

Thereafter, the computer system 100 activates the system polling unit 130 under the control of a central processing unit (CPU). Then, the system polling unit 130 requests a window message corresponding to an event by the peripheral device to all peripheral devices 110 connected to the computer system 100 in sequence, and requests The window message is peaked in the background (S200). The window message causes the Windows application program to perform a predetermined task.

Once peaks have been completed for all peripheral devices, certain events are generated by any peripheral device during the operation of computer system 100. At this time, the event checker 140 detects the event and searches for a window message corresponding to the event among the window messages peaked on the message queue 120 by the system polling unit 130. The window message corresponding to the corresponding event is searched and brought (S400).

Thereafter, when the event checker 140 accesses the peaked window message by the system polling unit 130, the event processor 150 executes the window message and removes the executed window message. (S500).

For example, when a user presses a keyboard or clicks a mouse, the event checker 140 detects a hardware event and the window message peaked by the system polling unit 130. The window message corresponding to the event is obtained and processed. In this case, the processing of the message means that the Windows application program performs a predetermined task.

As described above, when a predetermined event occurs while the computer system is being driven, the confirmation procedure for processing the window message is simplified because the window message peaked by the system polling unit is searched and the window message is processed. The processing speed of a computer system is improved.

The rights of the present invention are not limited to the embodiments described above, but are defined by the claims, and a person skilled in the art can make various modifications and adaptations within the scope of the claims. It is self-evident.

1 is a block diagram showing the internal structure of a conventional computer system.

Figure 2 is a block diagram showing the internal configuration of a computer system according to a specific embodiment of the present invention.

3 is a flow chart illustrating a window message processing method according to a specific embodiment of the present invention.

Explanation of symbols on the main parts of the drawings

100: computer system 110: peripheral device

120: message queue 130: system polling unit

140: event check unit 150: event processing unit

160: storage unit

Claims (7)

A system polling unit that peaks a window message about an event generated by a peripheral device mounted to a computer; A message queue in which the window message for each peripheral device is peaked; An event check unit for accessing a window message corresponding to the event among window messages peaked by the message polling unit, when an event occurs; And And an event processor for executing the window message accessed by the event checker. The method of claim 1, The system polling unit, And a window message processing means for sequentially polling window messages corresponding to the event for each peripheral device when the computer system is booted and an operating system (OS) is driven. The method of claim 1, The event processing unit, And when the window message is executed, remove the executed window message. (A) peaking a window message for an event per peripheral device mounted on the computer system; (B) detecting that any event occurs while the computer system is running, and retrieving a window message corresponding to the event among the peaked window messages; And And (C) executing the searched window message. The method of claim 4, wherein Step (A) is And when the computer system is booted and an operating system (OS) is started, sequentially polling window messages of a peripheral device mounted on the computer system. The method of claim 4, wherein Step (C) is, And when the window message is executed, removing the window message. The method according to any one of claims 4 to 6, The step (A), the step (B), and the step (C) perform independent functions as respective threads.
KR1020070079814A 2007-08-08 2007-08-08 Apparatus and method for control to window message KR20090015476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070079814A KR20090015476A (en) 2007-08-08 2007-08-08 Apparatus and method for control to window message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070079814A KR20090015476A (en) 2007-08-08 2007-08-08 Apparatus and method for control to window message

Publications (1)

Publication Number Publication Date
KR20090015476A true KR20090015476A (en) 2009-02-12

Family

ID=40685034

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070079814A KR20090015476A (en) 2007-08-08 2007-08-08 Apparatus and method for control to window message

Country Status (1)

Country Link
KR (1) KR20090015476A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101229264B1 (en) * 2011-03-04 2013-02-04 삼성탈레스 주식회사 Common meessage distributor and method for transmitting window message thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101229264B1 (en) * 2011-03-04 2013-02-04 삼성탈레스 주식회사 Common meessage distributor and method for transmitting window message thereof

Similar Documents

Publication Publication Date Title
CN102027453B (en) System and method for optimizing interrupt processing in virtualized environments
US7783865B2 (en) Conditional data watchpoint management
US9684517B2 (en) System monitoring and debugging in a multi-core processor system
US9355002B2 (en) Capturing trace information using annotated trace output
US20130138885A1 (en) Dynamic process/object scoped memory affinity adjuster
EP3241116B1 (en) Memory access protection using processor transactional memory support
US20110197193A1 (en) Device and method for controlling communication between bios and bmc
US10614004B2 (en) Memory transaction prioritization
US8578388B2 (en) Optimizing the performance of hybrid CPU systems based upon the thread type of applications to be run on the CPUs
US7818630B2 (en) Framework for automatically analyzing I/O performance problems using multi-level analysis
US9645873B2 (en) Integrated configuration management and monitoring for computer systems
CN113238815B (en) Interface access control method, device, equipment and storage medium
US20070005860A1 (en) Interrupt control system and method
US10621163B2 (en) Tracking and reusing function results
KR20090015476A (en) Apparatus and method for control to window message
US8024301B2 (en) Automatic database diagnostic usage models
CN114218000A (en) Log management method and device, electronic equipment and computer readable storage medium
US20040172408A1 (en) Real time maintenance of a relational database priority
CN110602162B (en) Terminal evidence obtaining method, device, equipment and storage medium
US10257053B2 (en) Analyzing contention data and following resource blockers to find root causes of computer problems
US7934067B2 (en) Data update history storage apparatus and data update history storage method
CN112416695B (en) Global variable monitoring method, device, equipment and storage medium
CN112948216B (en) Data acquisition method, device, equipment and storage medium
US20240168798A1 (en) Automatic synchronous or asynchronous execution of requests
US20200379850A1 (en) Uninterrupted backup operation using a time based approach

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination