LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-08-2018, 02:52 PM   #1
Happy.Arava
LQ Newbie
 
Registered: Aug 2018
Posts: 1

Rep: Reputation: Disabled
Question Give Me Explaination.


I started learning UNIX/LINUX and need some clarity at Multi-Users Process. How multiple users can access at the same time..?
Do they have only one CPU or Common Server or any other thing..?
 
Old 08-08-2018, 07:49 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Happy.Arava View Post
I started learning UNIX/LINUX and need some clarity at Multi-Users Process. How multiple users can access at the same time..?
Do they have only one CPU or Common Server or any other thing..?
Hi Happy.Arava - welcome to LQ.

I'm not sure how to answer your question. Firstly, many operating systems are multi-user, so an understanding of how that works is mostly unrelated to linux/UNIX. You would be advised to start by reading up on operating system technology in general.

Essentially, the multiple user sessions are "sandboxed" (separated and protected from each other) while sharing the host machine's physical resources (disk, cpu, memory). That's a simplistic way of explaining it, but is the jist of it.

Perhaps others will chime in with more enlightening explanations, but I would still encourage you to read up on computer technology and operating systems in general.

Cheers - please feel free to return with any linux-related questions.
 
Old 08-08-2018, 08:19 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,403
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
UNIX started as a mainframe system. From the very start, UNIX standards, on which Linux is based, envisioned multiple users of the same computer/OS. Note: Linux is based on UNIX standards, which were public, not on UNIX code, which was proprietary.

DigitalOcean offers a pretty good compact history of Linux: https://www.digitalocean.com/communi...story-of-linux

Last edited by frankbell; 08-08-2018 at 08:21 PM.
 
Old 08-08-2018, 08:23 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
There are many ways this can be done.
Not common to dedicate hardware such as one cpu per user. The software takes requests for action by inputs and outputs back to one or more users. You could dedicate hard drives to users or even as you say cpu's in a round about way.

The origins go back quite far on other OS's. One of the ones I studied a long time ago was CICS where for example many airline reservation desks could access ticket sales. The tricky part is how they handle concurrent transactions. So even way back in the 60's or so airline terminals would be part of a massive world wide transactor. They were all multi user.
 
Old 08-08-2018, 09:04 PM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Do you mean multiple processes for just one user or multiple processes for multiple users?

There isn't much difference, except that for multiple users you have to schedule things so that each user gets to use the processor reasonably equitably.
 
Old 08-09-2018, 02:53 AM   #6
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by Happy.Arava View Post
Title: Give Me Explaination.
Hi Happy.Arava and welcome!
I suggest you read https://www.linuxquestions.org/linux...Ask_a_Question, especially the section "Your Thread Title"
Indeed, it's important to phrase the most specific thread title you can in order to get as many accurate answers as possible. You might not attract attention on your post with a too vague title, and even if you can (by chance so) it's very difficult/longer for other members to search your thread if they have a similar question.
 
Old 08-09-2018, 08:53 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
In the case of pulseaudio, sharing is done by treating data like a client / server network. For the local machine the interface is lo aka localhost aka 127.0.0.1. Although by default it does NOT share (in debian), you have to change the configuration, otherwise the soundcard is locked by the user who started pulseaudio. Without pulseaudio, alsa shares across multiple users by default with it's built in dmix ability. Long long ago that didn't exist and it didn't share, but alsa wasn't even part of a standard kernel in those days.
 
Old 08-09-2018, 11:25 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,704
Blog Entries: 19

Rep: Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503
It's not a problem. Each program is run by a separate process. Each process has a user. Some processes have the same user. The kernel creates processes on demand and tidies up after them when they exit.

Processes queue up for the attention of the cpu(s). A cpu doesn't care which user a process belongs to. It services the queue, mostly on a "first come first served" basis (although that can be overridden). Processes that make a request to access hardware (which is a slow business) get kicked out of core and put at the end of the queue until the kernel has carried out the access for them and returned the result. Then they work their way back up. They can also be kicked to the back of the queue when they have exceeded their current cpu time.
 
Old 08-09-2018, 11:36 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Folks, I feel that l0f4r0 has hit it pretty well. Especially for someone who entered the LQ forums a month ago.

It is an incomplete question, a bad thread title. Continued conjecture on everyone's part as to the details of the question should probably wait until Happy.Arava decides to offer the forum an update.
 
Old 08-10-2018, 06:00 AM   #10
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Hi Happy.Arave, welcome to LinuxQuestions!

Quote:
How multiple users can access at the same time..?
As I understand it multiple users can use separate iterations of the same application. If they are accessing the same file, say a common database, only one user will be allowed to change/update it at a time via the process scheduler, others being locked out till their access slot comes round. (I'm now waiting for a DBA (Data Base Analyst) to correct me! )

Quote:
Do they have only one CPU or Common Server or any other thing..?
No. If the system has only one processor then there's usually a round-Robin time slice procedure where processes are allowed to run for a specified time. Processes are allocated a priority (which can change). Users are assigned into groups which again, have a priority assigned, which will affect the running of their applications and time allocated.

Multiple processors? There's usually another level of system administration which, in some cases, sits below the operating system where processors or fractions of processors can be allocated, along with memory, storage and peripheral access can be assigned (I'm thinking IBM P series systems here back about ten years ago, goodness knows what's out there now!) The OS process scheduler is over and above this further complication.
The Linux kernel has been able to handle multiple processors (SMP) or cores for quite a while and did so before Windows did. Providing the application has been written to use them, it will.

So that's my worth Happy.Arava. The answer to your seemingly simple question is it's a lot more complicated than it may outwardly seem and the Operating System is only one part of the answer.

Play Bonny!

 
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
help on explaination of shell script ashley75 Linux - Newbie 8 01-16-2015 03:12 AM
[SOLVED] Boot Process Explaination vnc Linux - Newbie 3 08-30-2012 07:02 PM
Command explaination? ggarrette Linux - Newbie 2 07-02-2008 11:16 AM
script explaination maooah Programming 4 06-01-2008 01:30 AM
Again I need your explaination to understand a program. Gins Programming 7 03-24-2006 04:19 PM

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

All times are GMT -5. The time now is 11:17 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