Multithreading in .NetFramework

 
Post new topic   Reply to topic    CiprianPungila.com Forum Index // Windows programming
View previous topic :: View next topic  
Author Message
tphase



Joined: 05 Dec 2007
Posts: 1
Location: Resita

PostPosted: Wed Dec 05, 2007 2:14 pm    Post subject: Multithreading in .NetFramework Reply with quote
Ce preferati, modelul MTA sau STA pentru a instantia un thread in .Net Framework 2.0?
_________________
Strength is irrelevant. Resistance is .
Back to top
View user's profile Send private message Yahoo Messenger
Forrest Gump
Site Admin


Joined: 05 Dec 2007
Posts: 22
Location: TimiÅŸoara

PostPosted: Wed Dec 05, 2007 6:52 pm    Post subject: Reply with quote
Ovi, trebuie să recunosc că deşi ştiam (auzisem) despre STA, MTA nu îmi este familiar...

Pentru cine nu ştie ce înseamnă, STA şi MTA se referă la COM (Component Object Model), tehnologii specifice Microsoft. STA se referă la Single Threaded Apartment, cu specificaţia că într-un "apartment" poate exista un singur fir de execuţie (thread). Un STA are o coadă de mesaje, pentru cazul în care un obiect care este creat într-un thread al unui STA, este apelat de către un alt fir... Dacă () era specific STA, acum () este specific MTA (Multi Threaded Apartment), şi specifică mai exact că acea porţiune de cod poate fi apelată şi de alte fire din acel MTA (deci dacă un obiect este creat într-o astfel de secţiune, acel obiect poate fi folosit cu succes şi de celelalte fire din MTA).

Eu personal nu am folosit decât puţin STA atunci când m-am jucat cu DCOM-ul Internet Explorer-ului...

Ovi, dacă am greşit cu ceva, te rog să mă corectezi Smile sau să mă completezi.

Tu foloseÅŸti des astfel de tehnologii?
_________________
I don't know if we each have a destiny, or if we're all just floating around accidental-like on a breeze, but I, I think maybe it's both...
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Post new topic   Reply to topic    CiprianPungila.com Forum Index // Windows programming All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group