| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
ASync Part II
   Introduction  
   Overview  
   New Classes  
   TwhAsyncAction  
   OnExecute  
   OnInit  
   OnFinish  
   OnDestroy  
   ExecuteDosCmd  
   Status Variables  
   ASync Download  
*

  

Browsing >>Overview

New ASync Demo

ASync Processing Demo - Features to Watch for

  1. Process using a dedicated background thread. This is the same technique shown on March 10th. (Leave all checkboxes blank.)
  2. Inform the surfer:
    • Using META REFRESH and redrawing status information (shown March 10th)
    • By keeping the connection open and using JavaScript to update a status field- requires RUNISA.DLL dated April 2, 1999.
  3. Flow of control
    • Surfer can cancel the process
    • Surfer can read other pages during processing
  4. Process using a globally shared background thread. (Check the last checkbox; recommended for high traffic)
  5. Process in N dedicated threads (Uncheck the last checkbox.)
  6. Process the work over multiple executions to provide a percent-complete interface. (Check the "Process work over multiple executions" option.)

    function TThreadInput.SendUpdate(PercentComplete:integer):Boolean;
    var
      a1:string;
    begin
      Result:=True;
      if bStreaming
      and assigned(Stream) then
        with Stream do begin
    
      if temp<>stream.name then begin
        sleep(100);
        temp:=stream.name; 
        end;
    
          a1:=chForEach; // chunk-for-each
          StringRepl(a1,'XXX',inttostr(PercentComplete));
          if not SendBufferToMailBox(Name,'+',pchar(a1),length(a1)) then begin
            Result:=not bAbort;
            end;
          end;
    end;
    

 
Path:  www.href.com to; Services to; Tech Talk Archive to; ASync Part II to; Overview

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:50:51.
Session 2092805004, 40 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.229;
Time to produce this page: 0msec.