Results 1 to 3 of 3

Thread: CPU Overload

  1. #1
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69

    CPU Overload

    Hi,
    I modified something in StockListDemo code, and re-built it success.
    Here my changed :
    -------------------------
    constructor:
    create a map to hold all snapshots
    (let's create an IDictionary and call it _snaps)

    method Start:
    start a new thread with the following behaviour:
    every 5 seconds:
    read the file
    for each stock:
    create an IDictionary to store all field name/value pairs
    associate the IDictionary to the stock name in _snaps
    (the previous association, if any, should be garbage collected)
    call onEvent on the listener and send the IDictionary

    method SendCurrentValues:
    get the IDictionary associated to the requested item name in _snap
    if found:
    call onEvent on the listener and send the IDictionary
    else
    call onEvent on the listener with an empty IDictionary

    (you can see detail at http://www.lightstreamer.com/vb/showthread.php?t=247)

    ------------------

    Now I start LS and DotNetServer.bat, my CPU always 100% (in Windows Task : DotNetServer.exe has CPU = 45%, iexplore has CPU = 35%). My code does not performance or something I wrong? Can u help me?

  2. #2
    Member
    Join Date
    Nov 2007
    Location
    VN
    Posts
    12

    Talking

    schema="field1 field2 field3"
    ma chi su dung field1 field2 thi se bi 100%

  3. #3
    Member
    Join Date
    Apr 2008
    Location
    Ha Noi
    Posts
    4
    Quote Originally Posted by skidrow406
    schema="field1 field2 field3"
    ma chi su dung field1 field2 thi se bi 100%
    Hi tuongkha !
    I has met the problem too. Do you fix it ???
    Pls help me. Thanks

 

 

Similar Threads

  1. CPU Overload
    By tuongkha in forum General
    Replies: 0
    Last Post: February 14th, 2008, 11:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:29 AM.