Re: [algogeeks] threading
Pthread is a User level thread , Java threading cant be distinguished as user level or kernel level , the java threads are contained in JVM and mapping is used by OS to map JVM to kernel threads. On Thu, May 26, 2011 at 4:55 PM, anshu mishra wrote: > it is os responsibility to map user level thread to kernel level thread. > Usually os implements many to many mapping. > In pthread we can bind a particular thread to particular processor or set of > processor. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Lalit Kishore Sharma, IIIT Allahabad (Amethi Capmus), 6th Sem. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] threading
it is os responsibility to map user level thread to kernel level thread. Usually os implements many to many mapping. In pthread we can bind a particular thread to particular processor or set of processor. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] threading
Pthread is a user-level thread or kernel-level?.Java supports user-level threading i know ,but while doing a project on web- crawling i marked the cpu-utilization in conky(ubuntu) ,both the cores' utilization increased drastically as program ran.I know that in user-level threading kernel is not aware whether a process is multithreaded or not,rather it sees the entire process as a single entity .But in my project i think the dual cores utilization increased because of the threads being scheduled on both the cores.I dont understand how is it possible as the kernel isn't aware of the process thread since it is user-level(java thread).Is it because of jvm implicit feature or java threads are hybrid kind in nature. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.