LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-22-2012, 01:16 PM   #1
elico
Member
 
Registered: Dec 2011
Posts: 145

Rep: Reputation: Disabled
Basic question about threads and processes


Hi all

I am a hardware engineer and used to interrupts that do the work.
I am new to LINUX and to what it offers.

My question is : Do threads and processes are ignited or
started or are responding to some external event like
closing or opening a switch ?
Or just work all the time based on some software
time sharing ?

Elico
 
Old 05-22-2012, 04:15 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
interesting question, but I am not sure I understand correctly.
threads and processes are scheduled using a software timesharing. or they might even run simultaneously with a multicore cpu.
but of course most of the time most of the processes wait for something, e.g. data returned from a disk read, user input,
a resource that is currently in use by another process (using locks, semaphors, ...) or similar.
in this case they are "sent to sleep" and will be woken up when an event for them arises, similar to an interrupt.
you might want to read a tutorial on multithreading for a programming language you know.
 
1 members found this post helpful.
  


Reply



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
Can processes/threads move between cores? DavidA Programming 4 08-09-2011 10:10 AM
Cases where processes will be used and where threads will be used aravinda78 Linux - Software 1 11-28-2008 10:31 AM
When to use threads and processes sr_sanjeev Linux - General 1 04-29-2008 02:38 AM
A question about processes, threads and control lumix Linux - General 8 10-29-2007 09:29 PM
Show processes, not threads Martin Strand Linux - Newbie 1 06-14-2005 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:53 AM.

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