<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-521624264612189433</id><updated>2024-12-19T11:28:38.870+08:00</updated><title type='text'>小雞的瘋狂筆記</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bennett-tw.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/521624264612189433/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bennett-tw.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>小雞</name><uri>http://www.blogger.com/profile/13204359475841090082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-521624264612189433.post-2567320629234851672</id><published>2014-11-08T23:27:00.002+08:00</published><updated>2014-11-09T11:18:46.696+08:00</updated><title type='text'>[C#]使用執行緒(Thread)方法</title><summary type="text">當程式寫到一個程度的時候
就一定會遇到多工的需求
而讓程式同時做很多事情的其中一個方法
就是使用執行緒(Thread)
這篇就來說明一下Thread的基本
首先，要使用Thread必須先在.cs檔加上using
using Threading;


接下來就可以在任何地方宣告Thread並啟動它
Thread sample = new Thread(_ThreadFunction);
sample.Start();
在上面這個範例中的_ThreadFunction是你用Thread方式去執行的Function名稱
內容可能像這樣
private void _ThreadFunction()
{
   int count = 0;

   while(count &amp;lt; 100)
   {
      count++;
      Thread.Sleep(100);
   }
}
這個</summary><link rel='replies' type='application/atom+xml' href='http://bennett-tw.blogspot.com/feeds/2567320629234851672/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/521624264612189433/2567320629234851672?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/521624264612189433/posts/default/2567320629234851672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/521624264612189433/posts/default/2567320629234851672'/><link rel='alternate' type='text/html' href='http://bennett-tw.blogspot.com/2014/11/cthread.html' title='[C#]使用執行緒(Thread)方法'/><author><name>小雞</name><uri>http://www.blogger.com/profile/13204359475841090082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-521624264612189433.post-7335597872301090579</id><published>2014-11-05T22:00:00.002+08:00</published><updated>2014-11-05T22:00:12.369+08:00</updated><title type='text'>數值變數型態整理</title><summary type="text">不常用到，但有需要時就很有用的資訊


整數


型態範圍位元

帶正負號  

sbyte-128 ~ 1278 位元

short-32768 ~ 3276716 位元

int-2,147,483,648 ~ 2,147,483,64732 位元

long-9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,80764 位元

不帶正負號  

byte0 ~ 2558 位元

ushort0 ~ 6553516 位元

uint0 ~ 4,294,967,29532 位元

ulong0 ~ 18,446,744,073,709,551,61564 位元



浮點數

型態範圍位元
float-3.4&amp;nbsp;×&amp;nbsp;1038到 +3.4&amp;nbsp;×&amp;nbsp;103832 位元
double±5.0&amp;nbsp;×&amp;</summary><link rel='replies' type='application/atom+xml' href='http://bennett-tw.blogspot.com/feeds/7335597872301090579/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/521624264612189433/7335597872301090579?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/521624264612189433/posts/default/7335597872301090579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/521624264612189433/posts/default/7335597872301090579'/><link rel='alternate' type='text/html' href='http://bennett-tw.blogspot.com/2014/11/blog-post.html' title='數值變數型態整理'/><author><name>小雞</name><uri>http://www.blogger.com/profile/13204359475841090082</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>