Hallo Ivanko,

Du schriebst am Sun, 19 Aug 2012 03:01:15 +0500:

> Did You read about CPU context switching - [re]storing registers,
> thread vars, memory maps, pipelines to GPU etc things bound to CPU etc
> ? A lot of work for CPU...

A lot of work for a single context switch, on the order of a couple
thousand instructions, but still only a fraction of a percent should the
process run for a couple milliseconds (several _million_ instructions).
(BTW, the duration of a time slice is configurable on Linux, there ist a
configuration value named "HZ" that set it. On my system, HZ=300, which
should make a time slice take about 3.3 ms. HZ=100 was common before kernel
version 3, but HZ=1000 could also be found, when fast response was needed.)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to