Hacker News new | ask | show | jobs
by masklinn 5276 days ago
> Oh, I'm sorry, you wanted instantaneous user switching? That's a smidgen harder than the 40-year-old solutions :)

These OS have been able to run multiple concurrent user sessions for 40 years, and fast user switching has been a feature of all desktop OS since Windows 9x went the way of the dodo.

There are specific issues (core services of these systems are probably — sadly — coded with the idea that a single user is running), but nothing which should be hard to fix.

2 comments

The biggest issue is resource limitations - multi-user systems require an abundance of resources that phones don't have.

What about the memory overhead of concurrent sessions?

Who gets to run background processes, and when are they terminated? Because neither CPU nor battery life exist in abundance.

What happens to incoming calls/e-mails/texts/notifications? (Especially for the guest account, where you don't have a second phone number for that account)

What happens to e.g. alarms set by user1 if user2 is logged in?

Which settings are shared, which aren't? And if your phone storage is encrypted, how do you handle shared settings? What about privacy? Can user1 e.g. record GPS signals even if user2 is logged in? If not, what about "Find my phone" features?

Sure, conceptually it's a solved issue. Practically, there are innumerable details to be figured out.

I thought that iOS and/or Android gave each App its own user account in order to sandbox permissions between apps, so that they can't overwrite each other's files. If all of the user data for an app is owned by that app's uid, then wouldn't this allow someone else running that app to somehow gain access to user data from another 'actual' user?

E.g.

App1 has uid 100 User1 has uid 101 User2 has uid 102

If all userdata for App1 is owned by uid 100, User1 or User2 could potentially used App1 to gain access to the other user's app-specific user data.

(I'll admit that I'm not an iOS or Android programmer, so I may be a bit out of my depth here.)

This is a good example of how HN has gone down the tubes. I've been downvoted to -1 based solely on a post where I raised a possible security concern. I admitted that I wasn't fully versed, but I expected someone to correct my if I was wrong. Instead, I'm downvoted, but no one has bothered to actually post useful information. Am I wrong? Did someone just 'not like the tone' of my post for some strange reason? Who knows? No one is talking.
Ephemeral voting noise is not going down the tubes.
You are right, and I upvoted you.

On Android, uids are used for apps, not for users. Supporting multiple users on Android is thus not as simple as one might think.