LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2021, 10:05 AM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Difference between "threads" in single core and multi_core CPU ?


I just run into a tutorial describing processes run in multicore CPU as "threads". Not sure I buy that.

Hence what are the accepted terms of TECHNICAL descriptions / differences between

single code CPU running "threads" (used to be just "thread" )
multicore CPU running " ...what... in each core ?"
multicore CPU running in specific core " ...what... multi ... "

what is a basic "process " - in general terms or specifically in multicore CPU ?
Does "process " = "thread" ?
 
Old 01-03-2021, 10:12 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by jan128 View Post
I just run into a tutorial describing processes run in multicore CPU as "threads". Not sure I buy that.

Hence what are the accepted terms of TECHNICAL descriptions / differences between

single code CPU running "threads" (used to be just "thread" )
multicore CPU running " ...what... in each core ?"
multicore CPU running in specific core " ...what... multi ... "

what is a basic "process " - in general terms or specifically in multicore CPU ?
Does "process " = "thread" ?
A "process" is the running instance of a program (eg. firefox, VLC, etc, etc). A "thread" is a part of a running "process", so one process might have many threads of execution.
 
Old 01-03-2021, 10:22 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Difference between Process and Thread
 
Old 01-03-2021, 11:25 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
additional info:
https://www.thegeekstuff.com/2013/11...s-and-threads/
https://topic.alibabacloud.com/a/und..._30000800.html
 
Old 01-03-2021, 12:06 PM   #5
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Is this how this forum operates?
Collecting statistical data ?
Are you serious ?

With only ONE out of 3 posts actually addressing the question you all have the nerve to ask "is it solved "?

Are you writing a book ?

(PUT THIS IN THE BOOK...)

NO IT IS NOT SOLVED BY A LONG SHOT
 
Old 01-03-2021, 12:19 PM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by jan128 View Post
Is this how this forum operates?
Collecting statistical data ?
Are you serious ?

With only ONE out of 3 posts actually addressing the question you all have the nerve to ask "is it solved "?

NO IT IS NOT SOLVED BY A LONG SHOT
That is just a signature, automatically added to every post.

Anyway, if your problem was not correctly answered please give us more details, what do you need?

Last edited by pan64; 01-03-2021 at 12:21 PM.
 
Old 01-03-2021, 12:20 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
Is this how this forum operates?
Collecting statistical data ?
Are you serious ?

With only ONE out of 3 posts actually addressing the question you all have the nerve to ask "is it solved "?

Are you writing a book ?

(PUT THIS IN THE BOOK...)

NO IT IS NOT SOLVED BY A LONG SHOT
So what is the actual reason for this post.?

The links posted in the 2 of 3 posts you seem to think did not address your question point to references that need no repetition.

You could easily have found the same links with a quick search, and those links probably have a better answer than most could provide without deep research.

BTW, the part about marking it solved (if solved) is in the poster's signature, not his post. Temperance in your responses please.
 
Old 01-03-2021, 06:00 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
As in all things computing, the term is over-loaded. As well as software threads as above, there is also hardware threads. Quick search will fill you in on the basics - start with hyper-thread. In almost (?) all systems these days but was particularly contentious when first introduced as SMT.
 
1 members found this post helpful.
Old 01-03-2021, 07:40 PM   #9
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Temperance in your responses please.

...and give some real answers , please.

Stupid (no) responses are irritating , ( yes I said stupid ) so are "automatic" requests for "mark as solved " .

BUMP


single code CPU running "threads" (used to be just "thread" )
Answer:
Single core can run multiple threads;


multicore CPU running " ...what... in each core ?"
multicore CPU running in specific core " ...what... multi ... "

Answer:
Each HARDWARE CPU core can run multiple threads.

SOLVED

Last edited by jan128; 01-03-2021 at 07:41 PM.
 
Old 01-04-2021, 04:02 AM   #10
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,789

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Quote:
Originally Posted by syg00 View Post
As in all things computing, the term is over-loaded. As well as software threads as above, there is also hardware threads. Quick search will fill you in on the basics - start with hyper-thread. In almost (?) all systems these days but was particularly contentious when first introduced as SMT.
The software threads are also named LWPs, light weight processes. They are a kernel feature.
The hardware threads (x86 names them hyper-threads) are different IDs but land on the same computation registers. This CPU feature can be used to preprocess/decode instructions in parallel and eventually change=optimize execution order.
 
Old 01-04-2021, 11:11 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by jan128 View Post
Temperance in your responses please.

...and give some real answers , please.

Stupid (no) responses are irritating , ( yes I said stupid ) so are "automatic" requests for "mark as solved " .

BUMP


single code CPU running "threads" (used to be just "thread" )
Answer:
Single core can run multiple threads;


multicore CPU running " ...what... in each core ?"
multicore CPU running in specific core " ...what... multi ... "

Answer:
Each HARDWARE CPU core can run multiple threads.

SOLVED
Your answer is insufficient, does not cover the original post. So based on this it is definitely not solved.
You asked
Quote:
what is a basic "process " - in general terms or specifically in multicore CPU ?
Does "process " = "thread" ?
which was explained very well just you need to click on the links.
 
Old 01-04-2021, 01:22 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by jan128 View Post
Stupid (no) responses are irritating , ( yes I said stupid ) so are "automatic" requests for "mark as solved " .
Quote:
Originally Posted by jan128 View Post
Is this how this forum operates?
Collecting statistical data ?
Are you serious ?

With only ONE out of 3 posts actually addressing the question you all have the nerve to ask "is it solved "?

Are you writing a book ?

(PUT THIS IN THE BOOK...)

NO IT IS NOT SOLVED BY A LONG SHOT
@jan128,

If you haven't already, you may benefit from reviewing information as to how the LQ forums work as well as information about user profiles and signatures.

This information can be found in the various links provided on the side of the page, but here are some of them:
Overall LQ FAQ
User profile features explained
Signatures, avatars, and profile pictures explained
Thread tools explained

Will note that for the Thread tools, the information describes the menu for Thread tools, but it appears out of date. A normal thread tool capability for the originating poster of a technical thread has the ability to "Mark the Thread as Solved".

WRT your concerns, it has already been explained that there is a point in the post where a user's signature is shown. This is designated by a short, straight line. And for my case, I added a line to explain that it is the start of my signature, because other new users have been confused, as you have, in thinking that it was part of my post.

Would also like to point out a few other items:
  • No one in this thread has specifically asked you to mark the thread as solved, instead person's signatures offer the suggestion that IF your question is solved, that you may mark it as such so that someone who has the same question can see that the issue was resolved and evaluate if the answer works for them. And as such, if you have further questions about threads, please update us with those additional questions.
  • Everyone on this site, including yourself, are volunteers who contribute to this site out of preference and an affinity for the Linux operating system. We welcome your questions as well as responses to help promote Linux understanding.
  • The site does have a set of guidelines, also known as LQ Rules which are constructed to help promote a cordial and helpful atmosphere, and also to provide guidelines for what is deemed to be appropriate behavior.
  • There also is a subforum LQ Suggestions & Feedback where you can ask questions about the site or open a thread to discuss the site and how it is structured.
Please familiarize yourself with how this site works and avoid responses as you've demonstrated in this thread or here, or here.

Sorry for any confusion where you misconstrued replies from people because of their signatures. Hopefully moving forwards you'll now understand that not all text is intended as the content of the response, but instead some of it is self-styled information that users may choose to have as part of their profile.
 
Old 01-06-2021, 05:28 AM   #13
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,621
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by Kory_roy View Post
Threads means the ability to read lines of code simultaneously.
AFAIK, this is true for multi-core- or multi-processor systems, only. PSE correct me with background and references, if need be.

Whatever you call “real” or “true” (or even "green"), there has been multitasking on single-processor systems and multi-threading, too. A thread is not an ability but a processing unit. The “at the same time” thing depends on a few factors which do not have to be present to allow that multiple threads and/or tasks are spawned from within the same original process. Time-slices were part of the explanations I had been given in the beginning, but there is more...

BTW. I remember that taks and threads were handled and named differently on MS-OSs, meaning that the expressions cannot be mixed with the same facts and events in Linux – if confusion is not the principal motivation.

Last edited by Michael Uplawski; 01-08-2021 at 06:47 AM. Reason: spawning. Ambiguity btw. Threads and Tasks.
 
  


Reply

Tags
multicore, process, thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Threads still unread in "Quick Links>View Latest Threads" after "Mark Forums Read" l0f4r0 LQ Suggestions & Feedback 0 01-09-2019 06:36 AM
Difference between "1R8 Single Rank 240 Pin" and "2R8 dual Rank 240 Pin" PatD Linux - Hardware 3 12-16-2017 12:33 PM
TOP output Cpu(s) and %CPU don't fit on single core AchimRS Linux - General 2 11-03-2011 03:32 PM
Difference between CPU core and sockets? linuxunix Linux - Newbie 5 03-26-2010 09:00 AM
Relabel "0 Reply Threads" to "Zero Reply Threads" J.W. LQ Suggestions & Feedback 21 01-16-2007 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration