flash Ö® URLLoader
var loader:URLLoader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, handleProgress );
event:ProgressEvent event.bytesLoaded/event.bytesTotal
var streamer:URLStream = new URLStream( );
streamer.addEventListener( ProgressEvent.PROGRESS, handleProgress );
streamer.load(new URLRequest("example.txt"));
var streamer:URLStream = URLStream( event.target );
streamer.bytesAvailable/read***
var request:URLRequest = new URLRequest("process.cfm");
var variables:URLVariables = new URLVariables();
request.data = variables;
sendToURL(request);
//open a new url
navigateToURL(request, "_blank" );
//return value
var variables:URLVariables = new URLVariables( );
variables.method = "getProductDetail"
variables.productId = 2;
request.data = variables;
loader.dataFormat = DataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, handleComplete);
loader.load(request);
var loader:URLLoader = URLLoader( event.target );
loader.data.productId
long start = System.currentTimeMillis();
long initMem=Runtime.getRuntime().totalMemory();
......
long end = System.currentTimeMillis();
System.out.println("usedTime:"+(end - start)/1000);
long freeMem=Runtime.getRuntime().freeMemory();
System.out.println("usedMem:"+(initMem-freeMem)/(1024*1024));
Ïà¹ØÎĵµ£º
NORºÍNANDÊÇÏÖÔÚÊг¡ÉÏÁ½ÖÖÖ÷ÒªµÄ·ÇÒ×ʧÉÁ´æ¼¼Êõ¡£IntelÓÚ1988ÄêÊ×ÏÈ¿ª·¢³ö NOR
flash¼¼Êõ£¬³¹µ×¸Ä±äÁËÔÏÈÓÉEPROMºÍEEPROMһͳ
ÌìϵľÖÃæ¡£½ô½Ó×Å£¬1989Ä꣬¶«Ö¥¹«Ë¾·¢±íÁËNAND flash½á¹¹£¬Ç¿µ÷½µµÍÿ±ÈÌØµÄ³É
±¾£¬¸ü¸ßµÄÐÔÄÜ£¬²¢ÇÒÏó´ÅÅÌÒ»Ñù¿ÉÒÔͨ¹ý½Ó¿Ú
ÇáËÉÉý¼¶¡£µ«ÊǾ¹ýÁËÊ®¶àÄêÖ®ºó£¬ÈÔÈ»ÓÐÏ൱¶àµÄÓ²¼þ¹¤³Ìʦ ......
Éú»îµ±ÖкܶàÉÈÐΣ¬ÕâЩÉÈÐοÉÒÔ°ïÖúÎÒÃÇÖÆÔìºÜ¶àÓ¦Óá£Èç֮ǰµ±ÖеÄÌ«¼«µÄ×ö·¨£¬µÚ¶þµÄ·½Ã棬¸öÈË·¢ÏÖÉÈÐοÉÒÔÖÆ×÷һЩ¶¯»¡£ÊµÏÖÒ»¸öÌî³äÑÕÉ«µÄÓ¦Óá£×ö·¨ºÜ¼òµ¥¡£
ÎÒÃÇÏÈ´´½¨Ò»¸öÉÈÐΡ£Ê¹ÓÃAPI»æÖÆÉÈÐΡ£
²éѯ¹ýÏà¹Ø×ÊÁÏ£¬·¢ÏÖÍøÉÏÓм¸Öֵķ½Ê½ ʵÏÖ»æÖÆÉÈÐΣ¬¶øÏÂÃæÕâÖÖÊÇͨ¹ýÃèµãµÄ·½Ê½»æÖÆ¡£¿´¿´ÀïÃæµ ......
·ÖÎöÁËǶÈëʽ»·¾³ÖÐYAFFS/YAFFS2ÎļþϵͳµÄÓŵ㣬Ìá³öYAFFS2²»½öÖ§³ÖСÈÝÁ¿µÄNAND flash£¬¶Ô´óÈÝÁ¿NAND flash¸ü¾ßÓÐÓÅÊÆ¡£²¢½éÉÜÁËYAFFS/YAFFS2Îļþϵͳ½á¹¹¡£×ÅÖØ½«YAFFS2ÎļþϵͳÔÚǶÈëʽLinuxϵͳÖеÄʵÏÖ¹ý³Ì°üÀ¨ÅäÖᢱàÒëÒÔ¼°²âÊÔÕû¸öÍêÕû¹ý³Ì×÷ÁËÏêϸµÄÂÛÊö¡£
¹Ø¼ü´Ê NAND flash£¬YAFFS/YAFFS2£¬Ç¶ÈëʽLinuxϵͳ
......
´Ë´¦Ç¶ÈëµÄflashÀïÃæµÄͼƬÊÇ¿ÉÒÔËæÊ±·¢Éú¸Ä±äµÄͼƬ£¨¶¯Ì¬Í¼Æ¬£©
×¢ÒâÀ¶É«×ÖÌåµÄµØ·½£¬ÕâЩµØ·½¶¼ÒªÍ³Ò»
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="${ctx}/ui/Login/AC_RunActiveContent.js"
language="javascript"></script& ......
1 FlashÀàÐÍÓë¼¼ÊõÌØµã
FlashÖ÷Òª·ÖΪNORºÍNANDÁ½Àà¡£ÏÂÃæ¶Ô¶þÕß×÷½ÏΪÏêϸµÄ±È½Ï¡£
1.1 ÐÔÄܱȽÏ
Flash ÉÁ´æÊÇ·ÇÒ×ʧ´æ´¢Æ÷£¬¿ÉÒÔ¶Ô´æ´¢Æ÷µ¥Ôª¿é½øÐвÁдºÍÔÙ±à³Ì¡£ÈκÎFlashÆ÷¼þ½øÐÐдÈë²Ù×÷ǰ±ØÐëÏÈÖ´ÐвÁ³ý¡£NANDÆ÷¼þÖ´ÐвÁ³ý²Ù×÷Ê®·Ö¼òµ¥£»¶ø NORÔòÒªÇóÔÚ½øÐвÁ³ýǰ£¬ÏÈÒª½«Ä¿±ê¿éÄÚËùÓеÄλ¶¼Ð´Îª0 ......