r/programming • • Apr 04 '10

Why the iPad and iPhone don’t Support Multitasking

http://blog.rlove.org/2010/04/why-ipad-and-iphone-dont-support.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+rlove+%28Robert+Love%29&utm_content=Google+Reader
225 Upvotes

459 comments sorted by

166

u/lex99 Apr 04 '10

Why couldn't you use the flash memory as swap space? There's gigs of it, and it's faster than a hard drive anyway.

216

u/armper Apr 04 '10

Because you can, and this article is shit. Plus why do other phones and unlocked Iphones multitask?

10

u/lazyplayboy Apr 04 '10

You make a reasonable point, but if you multitask with a jail-broken iphone, you will find that background apps are killed randomly (well, it's seems to be at random but obviously it'll be 'OOM Killer' at work).

Still, that functionality is better for me seeing as the only background apps I want to run are IM apps. Try to run more and expect some to be killed at random is fine by me, but I guess that doesn't fit with Apple's philosophy. It pisses me off that safari on the iphone backgrounds itself, seems pointless to me (unless you're on a slow connection and you want a web page to load in the background, I guess?).

13

u/glide1 Apr 04 '10

Yes, but how do you explain the OOM killer to the common person who views the iPhone/iPad as an appliance rather than a computer? Have only 3 concurrent apps running?

What about an application that constantly runs GPS in the background and drains the battery? How will the consumer remember that it was his fault and instead blame the fact that he couldn't swap the battery out?

Look at how people treat windows. I know that third party applications and drivers were really the cause of instability but most people just blamed Microsoft.

2

u/lazyplayboy Apr 04 '10

I agree completely :)

2

u/oantolin Apr 04 '10

With push notifications not running IM in the background is bearable, but I agree that backgrounding them is better. I'm tempted to jailbreak just for that.

I was surprised to realize, when I thought about it, that there is very little I actually wanted to be able to run in the background on my iPhone: a music or podcast player (which does run in the bg) and an IM client. Well, I do sometimes wish Safari could render a "tab" in the background...

21

u/[deleted] Apr 04 '10

I suspect it's a design choice made for them not us. From a usability perspective it makes a lot of sense for non-technical users and greatly simplifies the UI. It would be nice if apple made multi-tasking a feature you could enable for people comfortable with computers/technology.

I doubt it's simply a technical limitation - if Windows Mobile 6, which is god awful, can multi-task.. I'm sure Apple could figure out how to do the same with iPhone OS.

18

u/notforthebirds Apr 04 '10

I'm sure Apple could figure out how to do the same with iPhone OS.

With all due respect, the iPhone OS can multitask already. This point is even pointed out in this article.

5

u/[deleted] Apr 04 '10

Windows Mobile 6 does multitasking in exactly the horrible way the article mentions though. On my Blackjack, I deal with background programs being killed off all the time. If I have more than two programs running at once (beyond background programs like messaging), I have to be absolutely sure I'm willing to lose the state of the least recently used program.

0

u/[deleted] Apr 05 '10

[deleted]

→ More replies (1)
→ More replies (25)

5

u/rolleiflex Apr 04 '10 edited Apr 04 '10

Because you can, and this article is shit. Plus why do other phones and unlocked Iphones multitask?

Well, in accordance with his views on topic, unlocked iphones multitask, but multitasked applications frequently gets killed by the OS, rendering multitasking pretty much useless. and you lose data.

edit:typo

→ More replies (5)

53

u/keypusher Apr 04 '10

It's because Apple wants to provide a consistent user experience. They don't want your iFart app to crash while you are trying to browse Mail or iTunes, because that would make their software look bad. So they make sure that it cannot.

50

u/[deleted] Apr 04 '10

They know better than the users how their products should be used.

9

u/derleth Apr 04 '10

Well, they have since the Macintosh. The Apple II was remarkably free of this lock-in stuff. It actually came from the factory jailbroken!

8

u/dilithium Apr 04 '10

But it didn't multitask. And you had to reboot to switch tasks.

→ More replies (1)
→ More replies (1)

23

u/notforthebirds Apr 04 '10

I think it's fairer to say that Apple know very well that badly written applications crash, thrash, and generally cause problems for users. When you make third-party application development as enticing as the AppStore does, you're going to attract a huge pool of really terrible programmers... Enter the "CrappStore".

Protecting users from a bad user experience doesn't say anything about Apple knowing better than the users how their products should be used.

As keypusher stated –

Apple wants to provide a consistent user experience

And I for one am glad for it.

Edit: If you actually every use an iPhone you'll see that it really doesn't get in the way as much as you'd think. The UI is inherently single-application due to space constraints, and switching between applications is as almost as fast as if they were already running.

19

u/darjen Apr 04 '10

multitasking works fine on my droid though. and things rarely crash.

it does get in the way of streaming music while reading blogs. that is a must for me.

→ More replies (3)

3

u/[deleted] Apr 04 '10

You could keep the app store as tightly controlled as you want and still open up 3rd party app installation. You could add several really descriptive and colorful warning windows before installation (This application has not been approved for this device! Install at your own risk! This application could lead to loss of data and diminished stability of your phone! Do you REALLY TRULY want to install?)

→ More replies (10)
→ More replies (5)

13

u/Hellman109 Apr 04 '10

Cannot? really? Because my iPhone crashes apps all the time.

→ More replies (2)
→ More replies (16)

6

u/myusernameistoolong Apr 05 '10

This is funny because Robert Love knows much more about memory and systems programming than you do.

He's indicated that swapping to flash isn't a great idea, but would work. Though he didn't specify why. And other people in this thread have already stated that with hacked iPhones apps do crash if you have too many open and sometimes they bring down the entire OS.

→ More replies (3)

3

u/px403 Apr 04 '10

FYI: If you have cydia installed on your jailbroken iphone, and haven't installed "Backgrounder", do it now. For example, while running something like pandora, you can hold on the home button for a couple seconds, and it backgrounds the app. It takes you back to the home screen, and puts a little "running" badge in the app icon (in the case of pandora, music remains playing in the background). When you click the icon again, it brings you back to the still running app.

There are some bugs, like pandora crashing if something else tries to take control of the sound device, and it's not as fancy as it would be if it supported some sort of notification tray, but it works fine for most things.

2

u/Phrodo_00 Apr 04 '10

sure, if you want to trash the thing's write/read limit.

7

u/railrulez Apr 04 '10 edited Apr 04 '10

You haven't disproved his point yet; jailbroken iphone apps can stay backgrounded by staying memory-resident. True multitasking should scale to any number of apps. I don't know whether iphone Darwin even has swapping. I'd like a more definitive answer, I'm inclined to take Love's word for the moment purely because he usually knows what he is talking about.

EDIT: There doesn't seem to be swapping enabled on iphone OS by default. Here's an article/howto on the pros and cons of a swap emulation hack for jailbroken iphones.

23

u/ZorbaTHut Apr 04 '10

His claim is BS. As others have mentioned, flash memory, on its own can hold swap perfectly well.

There are quite a few potentially good reasons it doesn't. The flash might be too slow for swap. The flash might not have proper load balancing, meaning that putting swap on it would force it to quickly reach its write limit. The OS might not support swapping. You name it. There could be very good reasons the iPhone doesn't support multitasking.

But the reason he's given - "flash = no swap" - is absolute junk and he should be called on it.

29

u/jrbattin Apr 04 '10 edited Apr 04 '10

His flash = no swap comment wasn't to be taken literally. He's indicating that it's a bad idea.

Having done embedded development, I can tell you that doing swap on user-interactive devices with slow flash memory like the iPhone (iPad has faster flash, thankfully) is an absolutely terrible idea, regardless of write durability. A swap file would introduce massive blocking, stuttering or freezing the UI, all while draining your battery.

As soon as you permit users to multi-task you've got to put a significant amount of design and engineering on how you're going to do so, as you must cope with limited device memory, power constraints, and slow flash. These can all be solved (the Android did, after all) but they require serious effort. If having the ability to multi-task applications isn't your priority, which in Apple's case it's clearly not, then you really shouldn't be wasting your developers' time implementing that stuff.

Apple's reasons should be clear as day: It takes effort to get multi-tasking to not rape the user experience on limited hardware, they have more important things to work on, and their stuff is selling like hotcakes anyway, so they (correctly, IMO) have decided to wait on implementing multi-tasking.

Besides, once you allow multi-tasking, you're deeply committed to that paradigm. Apple doesn't have the luxury of doing what Microsoft did with WM7: breaking everything and saying "Oops, we're going back to single-tasking!" <shovels money onto fire>

→ More replies (8)
→ More replies (1)
→ More replies (10)

1

u/HateToSayItBut Apr 05 '10

Thus, if the background applications consumed too much memory, the operating system would have to kill them.

This is what happens on my jailbroken iPhone. I have 8mb free ram, I try to open Safari, the OS freezes for 10-15 seconds while it decides to freeup some ram. What it's doing is killing any non-critical apps running the background. This is why the iPhone likes to freeze when opening up, for example, Google Maps; It is freeing up RAM.

→ More replies (6)

11

u/jtra Apr 04 '10

For example Nokia Internet Tablet 770 (Which I have), the later versions N800, N810 and mobile phone N900 have ability to put swap on flash memory card.

9

u/srujan Apr 04 '10

All Nokia S60 devices multi-task very well. I have been often amazed at how many apps I can run on my E71x, limited though it is by stupid AT&T firmware.

→ More replies (1)

2

u/lazyplayboy Apr 04 '10

Do you still use the 770? I've found mine a bit of a dog to use. In fact I don't think I've charged it for 18 months.

→ More replies (3)

2

u/Jigsus Apr 04 '10

All nokia symbian phones can.

1

u/[deleted] Apr 05 '10

I love my Nokia 5800 xpress. I bought it of amazon for 250 dollars. Its interface is not as good as a iphone. However, the phone has a pretty good os, multitasks, good gps, good music player, and no att contract.

22

u/[deleted] Apr 04 '10

Flash as swap wears the flash unnecessarily, and it is slow.

9

u/lazyplayboy Apr 04 '10 edited Apr 04 '10

Is flash wear anything more than a theoretical problem, given the average life span of an Iphone and its battery?

An iphone is quite slow anyway and I don't think swapping to flash is going to be any slower than swapping to HD (of course, I accept that swapping is going to be much more frequent on something like an iphone than a full desktop so there will be a speed hit).

Doing something slow is better than not doing it at all.

10

u/freeall Apr 04 '10

Doing something slow is better than not doing it at all.

I think Apple would disagree here. And I can understand them, actually. Most consumers I've heard about talk about the speed they get from iPhone/iPod. And they do.

This is fake, though. It's only faster because it doesn't allow multitasking (unlike the author of the article I skip the long rant about how it's not really multitasking - he's just really smart and I'm not). But who cares, right? Only us programmers and it seems that almost all have sold out and created apps for the iPhone anyway.

If even us who should know better sell out, then how can we blame Apple for shitting on us? As Steve Jobs say "it just works".

→ More replies (1)

2

u/dirtymatt Apr 04 '10

Doing something slow is better than not doing it at all.

That's not how Apple works. If they can't do something great (or at least their opinion of great), they don't do it at all.

→ More replies (1)

20

u/theillustratedlife Apr 04 '10

I think flash drives don't handle frequent reads/writes well. I think that's why Android hackers use microSD cards (disposable) rather than the in-built solid-state storage for swapping. When they wear out an SD, they can easily replace it, unlike a soldered-on chip.

4

u/wbkang Apr 04 '10

I can almost guarantee you no matter how much you use your device, you won't be able to wear it out in 5 years which by the time you will replace your phone anyway.

→ More replies (2)
→ More replies (8)

3

u/dsucks Apr 04 '10

Because writes to flash require a lot of power for such small device. Even mobile Safari doesn't have on-disk cache -- only tiny RAM cache.

3

u/godofpumpkins Apr 05 '10

It isn't at all faster than a hard drive. If you have a jailbroken iPhone, try dding /dev/zero into a file and weep.

7

u/q3k_org Apr 04 '10

The iDevices use NAND flash. It's not as bad as NOR (which has serious limitations, including whole-sector writing), but it still wears out pretty fucking fast, and that's why you don't want a swap file on there.

→ More replies (6)

7

u/Wavicle Apr 04 '10

You could, but there is a deep, dark secret the article author is hiding...

You don't need swap.

You don't.

Honest. My 7MHz Amiga 500 w/ 1MB DRAM had a preemptive multitasking operating system and no MMU. No MMU = no page faults = no swap. Yet I regularly had 3 or 4 applications running simultaneously on it.

The GP2X Wiz has 64MB of SDRAM and NAND flash for mass storage, yet it multitasks just fine.

So the iPad with 256MB of SDRAM and NAND flash for mass storage is technically too limited to multitask?

Whatever.

4

u/dmhouse Apr 04 '10

How many of those apps were displaying HD video, or viewing megabyte-sized photo, or first-person shooter games?

I think you need to consider the actual amount of memory the average iPad app uses. I wouldn't be surprised if it was fairly close to the 256MB limit.

12

u/Wavicle Apr 04 '10

It is not.

Displaying video doesn't require nearly as much memory as you think, and apple has conveniently provided a hardware decoder to do most of the heavy lifting. You might check the other thread on the front page where a reviewer specifically stated that on their upcoming trip they will take both their netbook and iPad specifically because the netbook plays more movies in more formats. Want to watch your favorite DVD on an iPhone? I bet you used handbrake to transcode it into a supported format, huh?

Viewing a "megabyte-sized" photo takes only incrementally more memory than the image itself. Unless for some reason you are asking the iPhone to display a 90 megapixel image, it just isn't that much.

Any FPS that the iPhone or iPad has any hope of playing is not going to need anything close to 256MB. That would be an awful lot of wasted textures.

But this doesn't really matter because the all elusive "target demographic" - the computer illiterates that want a device, not a computer - aren't doing any of those things. They're playing sudoku, updating their facebook status and wondering why they can't get into farmville.

→ More replies (1)

1

u/lolwutpear Apr 04 '10

My Mac SE had pretty sweet multitasking 20 years ago. http://upload.wikimedia.org/wikipedia/en/9/96/Sys6screenshotbusy.png

→ More replies (2)

2

u/Peaker Apr 04 '10

It's somewhat problematic because flash memory has a limited amount of writes it can support before it dies.

0

u/[deleted] Apr 04 '10

[deleted]

5

u/kvigor Apr 04 '10

You're only off by three orders of magnitude there. MLC flash is typically rated to 10,000 program/erase cycles, and the trend is downward.

2

u/jsully Apr 04 '10

The article that you linked to actually cites Toshiba's own numbers, which mention the same 5 year lifetime that I came up with.

1

u/atlassoft Apr 04 '10

Limited number of read-write cycles, I'd imagine. Flash starts dropping bits predictably after a certain number of read/writes. Since the iGadgets have so little RAM, they'd be swapping all the time and wearing down the flash memory.

0

u/[deleted] Apr 04 '10

[deleted]

1

u/[deleted] Apr 05 '10

Why do you install apps that stay active then?

On Android you, as the user, have the choice. You can decide not to use those apps/widgets. To me, this is a better end user experience than the iPhone OS.

0

u/[deleted] Apr 04 '10

[deleted]

10

u/mackstann Apr 04 '10 edited Apr 04 '10

It really depends on the access pattern. As far as I know, even a pretty lame flash chip will still stomp a mechanical hard drive when there are lots of random reads.

Ever since I bought an SSD, I tend to visualize the arm of mechanical hard drives in slow motion, as this giant, lumbering robot arm that takes forever to move to its next destination, while the electrons flow through a microchip at absurdly higher speed, without regard for physical proximity.

→ More replies (8)

14

u/mcdonc Apr 04 '10

i guess my nokia n82 has a hard drive to swap to. it feels pretty light, i didn't know.

→ More replies (1)

21

u/theillustratedlife Apr 04 '10

This doesn't solve the problem at all. iPhone apps already save state when they are interrupted. The apps that would actually be useful for backgrounding - music players and location trackers - all provide a service that doesn't need a consistent visual interface to be useful, but needs consistent access to resources even when showing no UI. Randomly killing my radio station or bike computer just because something else is in the 'foreground' is not going to make me a happy customer.

8

u/mercerist Apr 04 '10

I use a jailbroken iphone with multitasking and I can confirm that if I run multiple apps, they eventually crash. Sometimes the iphone too.

It's still worth it to me, but I can see why it's not a good idea.

6

u/[deleted] Apr 04 '10

Are you assuming that a multitasking environment on an iPhone must crash as a matter of principle? Or is it your particular environment plus your particular apps that crashes?

3

u/mercerist Apr 04 '10

No, maybe apps right now leak memory and won't do so in the future, if they're built specifically for multitasking. However, I can see that it would be harder to ensure/enforce, and that there's always the problem of trying to run too many apps at the same time, or memory-intensive apps on a system that has little memory.

I mean, just look at my laptop. I have the memory-managing 'chops' of a geek, and run tons of apps at the same time. I expect the system to be slow if I run photoshop, InDesign and iPhoto at the same time. Yet even I still curse at my laptop for being slow, because at times I might not be aware of how much memory certain apps are actually using. I keep forgetting how much memory tons of tabs in my browser take, for example.

And then there's the apps that consistently seem to get less stable over time, sometimes crashing, sometimes just slowing down my mac, even after I've closed them.

All I'm saying is that part of me suspects that with the iPhone, Apple has simply taken the opportunity to create a new, simpler interface that doesn't have any of these problems, by removing multitasking. They seem to be doing the same thing with the iPad by removing the file interface.

I think it's very clever, because most people I know get even more frustrated than me when, say, photoshop and word slow their computer down. I do wish they gave me the option of choosing the multitask or use the filesystem, rather than force me to void my warranty and jailbreak, but I understand why they don't offer either out of the box.

I could be wrong though. Maybe it's feasible to create a good multi-tasking iPhone. But if you consider the problems this presents on advanced, stable, modern operating systems, especially to the non-geek, and when you add the battery drain issue and the difficulty many people have with the whole concept, I think it's hard to pull of.

But you're technically correct. The problem is probably partly the system in general, and partly my particular environment and apps.

3

u/[deleted] Apr 04 '10

Well, if what you're saying is true then the good old days of single-tasking have ended quite illogically and without any kind of market demand. Of course I don't believe that at all.

The days of single-tasking have ended for a good reason, logically, due to a market demand.

People are funny animals. They forget things. For example, you let them run a single tasking system and they curse at not being able to run two apps at once. You let them run two apps at once, and they curse at the system being less stable and slower. So you bring them back to single-tasking, and they are happy for 1 week. On the second week they remember why they hated single-tasking to begin with and want back to multitasking again. Then they're back. Then they remember why they hated multitasking and want back to single. Etc. So basically people are fickle and don't really know what they want, but if you look at the overall pattern, I think the demand for multitasking is overwhelming.

→ More replies (1)

7

u/notforthebirds Apr 04 '10

When I saw this I was quite hopeful it would clear up some misconceptions, but I think it really served to add more. In particular the claim that the iPhone doesn't support serialisation.... or that "Bundles" are this magical technology for enabling multitasking.

With a little digging through the Android documentation it becomes clear that Bundles are little more than a collection of string->value mappings, which are written to persistent storage.

Programmers have to manually extract values from the Bundle when the application is loaded, then manually places values into the Bundle to save the applications state when required.

Can the iPhone OS not handle this?

Of course it can, otherwise things like –

  • NSCoding/NSCoder – manual serialisation

  • Core Data – automatic persistence

would be pretty damn useless.... actually they wouldn't even exist.

In fact, it's very common for an application to save it's state before it closes, and the iPhone OS gives every application a chance to do this before it's forcibly closed.

Furthermore, unlike on Andoid, this state can be saved ~automatically if the application uses the Core Data framework.

So really? What does Apple have to add to support for Android style multi-tasking in the iPhone OS? I'm not really sure, but going by the article: a few little changes to the out-of-memory monitor would do it.

Note: Clearly the iPhone OS already has support for "services", or daemons.

6

u/cleo_ Apr 04 '10

So really? What does Apple have to add to support for Android style multi-tasking in the iPhone OS? I'm not really sure, but going by the article: a few little changes to the out-of-memory monitor would do it.

They need to add the illusion of multi-tasking, of course! Andriod just pretends there's an app running in the background, and then starts it back up quickly when the user 'switches' to it.

What Apple needs to add is the Services. Being able to register a GPS or Music Playing or Network Monitoring service for background use would probably be sufficient.

3

u/notforthebirds Apr 05 '10

They need to add the illusion of multi-tasking, of course!

I'm not sure this would be a good thing. Finding an intuitive way to integrate this into the user experience would be difficult and there would be little to gain from it, because as noted, the iPhone already handles the overwhelming majority of what users want it to do.

Moreover, like many people have pointed out here, multi-tasking raises a lot of important issues, and can actually be pretty difficult for non-technical people to get their heads around.

If they can solve these problems then I'm all for it, but I'd rather not sacrifice the user-experience so a few applications that I probably wouldn't use could be written... but that's just my opinion you understand.

Being able to register a GPS or Music Playing or Network Monitoring service for background use would probably be sufficient.

The first two are provided already :). Network monitoring is a little harder but certainly possible, after all, that's how notifications work.

Take care.

2

u/cleo_ Apr 05 '10

I'm not sure this would be a good thing...

I completely agree. I was being facetious. :)

The first two are provided already :).

Not quite - not for third party apps to be run simultaneously in the background. Think Pandora for music as you browse the web. A good API for this (plus a good notification system) would certainly go a long way to quell the murmur for multitasking.

→ More replies (1)

1

u/cosmo7 Apr 05 '10

Andriod just pretends there's an app running in the background

Not quite. Android suspends and resumes the UI thread when the application is switched, but any other threads - such as music playback - can keep on running.

1

u/wzdd Apr 04 '10

Yep, this part was seriously confused in the original blog. Both platforms encourage apps to support serialisation. Android, in addition, will let your app (or part of it---Android apps can be broken up into separate "activities") hang around in the background, with the understanding that at any point in the future Android can tell the backgrounded app to save its state and exit. (If memory is low, for example.)

1

u/[deleted] Apr 05 '10

Note: Clearly the iPhone OS already has support for "services", or daemons.

Which aren't accessible to third parties.

"What does Apple have to add to support for Android style multi-tasking in the iPhone OS" : Services and deamons to be accessible. Thats pretty much it IMHO.

I'm ready to bet that their out-of-memory scheme already take services and deamons into account.

1

u/notforthebirds Apr 05 '10

I'm ready to bet that their out-of-memory scheme already take services and deamons into account.

I have the feeling that you're right, but no evidence to support this :).

6

u/cbz Apr 04 '10

Both the iPad and iPhone, as mobile devices, have limited memory (256MB in the current incarnations) and no hard drive.

Well, Symbian does multitasking with 8 MB of memory with no flash drive!

2

u/mdw Apr 04 '10

Exactly. I always wondered, how my E51 multitasks without a glitch while iPhone cannot.

→ More replies (3)

11

u/mindbleach Apr 04 '10

Is Apple somehow going to make background applications not consume any battery?

Hugely unbalanced task scheduler, firmware DMA code for rapid whole-RAM context switches. Bam.

1

u/zahlman Apr 04 '10

That barely counts as multitasking, though :/

1

u/mindbleach Apr 04 '10

In that next to nothing happens in the background, yes, but a great many programs don't really do anything in the background. Right now I'm running Firefox, Gedit, Nautilus, GIMP, Calculator, Pidgin, Skype, Tilda, and Rhythmbox, all maximized. Except for the music player and whatever stray JS is in my tab-heavy FF session, none of that needs more than tablescraps of CPU time when I'm not looking at it.

The RAM thing is admittedly more of a concern. Programs designed to single-task expect basically all of the RAM and handling that gracefully is an open problem. One solution might be to lie to people and put in twice as much RAM as advertised and exposed.

5

u/[deleted] Apr 04 '10

That, and the fact that UITableView is a CPU hog, and they didn't want any stuttering in that super-fast bouncy scrolling.

1

u/[deleted] Apr 05 '10

You are probably right, The whole OS is a animation "tween" engine.

21

u/Concise_Pirate Apr 04 '10

Summary: Not enough memory.

7

u/yoden Apr 04 '10

That's actually kind of wrong. The real problem is poor serialization frameworks and APIs in cocoa. Google thought of this use-case and Android can handle it. Apple didn't so they're stuck with trying to convince you this is what you want with marketing rather than make a good product.

→ More replies (8)

8

u/[deleted] Apr 04 '10

BlackBerry seems to manage fine... has done for 6+ years. Article is bullshit.

58

u/jacques_chester Apr 04 '10 edited Apr 04 '10

Alternative title:

"An uninformed guess about the deep technical qualities of a platform I explicitly disclaim familiarity with, based on my experiences in a very different platform".

edit: yes, yes, downvote me.

What follows is my analysis of the situation. I am not privy to any insider Apple information. ...

Both the iPad and iPhone, as mobile devices, have limited memory (256MB in the current incarnations) and no hard drive. ...

So how is Apple going to enable support for multitasking? Likely similar to how Android allows it. ...

In summary, the iPad and iPhone don’t support multitasking not because it would hurt battery life, but because it is hard to do so on a swapless, embedded device without platform support for serialization, which the devices lack. ...

7

u/samtregar Apr 04 '10

Yeah, seriously. Since when did the iPhone not have mass storage? Is there some reason they can't just add swap to a file on the flash drive? The laptop I'm using right now has exactly as much flash storage as a high-end iPhone and it certainly supports virtual memory.

18

u/jacques_chester Apr 04 '10

Silence, heathen, the Android expert hath spake.

→ More replies (1)

3

u/q3k_org Apr 04 '10

The iDevices have NAND flash. And it burns out. A swap file would kill it really fast.

5

u/cb22 Apr 04 '10

You really should tell that to Nokia, considering the N900 has a 768MB swap partition, and it works just great.

5

u/cranktheguy Apr 04 '10

So all of the netbook and laptop owners with flash drives should really quit using them?

→ More replies (2)
→ More replies (2)

2

u/SarcasticGuy Apr 04 '10

your laptop probably has at least 2GB of DRAM. That's a completely different ballgame from the iPhone where even a single app has problems hitting its memory limits.

2

u/NewbieProgrammerMan Apr 04 '10

Well if the article is correct:

Both the iPad and iPhone, as mobile devices, have limited memory (256MB in the current incarnations) and no hard drive.

Even if you allow for the OS using half the available memory, that's still a lot of memory for a single application if you ask me. Or maybe I underestimate the power of bloat involved in the common frameworks nowadays.

2

u/SarcasticGuy Apr 04 '10

If you talk to iPhone app developers, you'll hear a common complaint is that they constantly have to deal with the memory limits or they end up crashing their app. So apparently the serious apps running today do indeed suck up at least 100MB+ (just look at the stats on any of your desktop apps, let along your web browser) . Now imagine dividing that up among multiple running apps.

Anecdotally, I hear that's why people hate Windows Mobile: stability, battery life, etc. Apple would hate to become that.

I mean, Apple isn't blocking multitasking because they think it's evil or a bad idea. They're probably biding their time until they can fit some more memory on-board.

Also, I'd be interested in knowing how good or bad the performance of the flash drive in a cellphone is if you use it as swap. I only have ~a few 100MB of free space left, and due to wear-leveling controllers, that'd mean writing and re-writing and shuffling everything around constantly.

I'm gonna trust Apple engineers know what they're doing.

→ More replies (1)
→ More replies (2)

2

u/slackwalker Apr 04 '10

I'm immediately skeptical whenever an author invokes the "one or two line code change" clause of failure.

6

u/[deleted] Apr 04 '10

I downvote anyone who whines about being downvoted.

→ More replies (1)

8

u/[deleted] Apr 04 '10

I expected a more substantial argument.

25

u/b0dhi Apr 04 '10 edited Apr 04 '10

I think he's spot on. One of the more complex apps I had to write for the iPhone, in its first incarnation, had issues with crashing intermittently. Found out it was due to running out of memory and would then crash if it couldn't free up enough, which isn't always possible (the app wasn't leaking though). And generally apps you find on the App Store leak memory. If multi-tasking was allowed, programs would simply crash as you ran more simultaneous apps and they ran out of memory, and the crash frequency would increase as you used apps until you rebooted the device. Obviously not a good user experience.

4

u/Wavicle Apr 04 '10

And this is why at the OS level you track how much memory a process has allocated and when memory gets low, you kill anybody who has run a long time without being used but is using too much memory.

→ More replies (6)

16

u/mgdmw Apr 04 '10

That's precisely the reason why Windows Mobile frequently needs a reboot and, in general, is a sucky phone OS. It's because of this very thing - namely, multiple concurrent running apps bleeding memory.

5

u/atheist_creationist Apr 04 '10

I preferred a sucky OS that I could listen to streaming radio AND browse the net and receive emails when there was no Android or iPhone in existence. It never progressed beyond that and that's why we call it a sucky OS now, but it was wonderful in the early part of this decade.

But even then, higher memory devices had very few of these issues especially when newer versions of WM made the (X) close button actually quit the application by default (could be changed, like anything else) instead of leaving it as a background process.

2

u/[deleted] Apr 04 '10

OK, but one app leaking memory is not a solution to multiple apps leaking memory. At best it's a band aid and it's not a valid argument against multi-tasking.

Why not design an OS that prohibits memory leaks? For example, an app must allocate all its memory at once upon startup and is not allowed to allocate after that. Then there will be no more leaks.

So the app starts and asks for 500k. The OS either OKs it or not. If not, the app dies right away without even starting. Then it's up to the app to manage this 500k of RAM internally. From the OS perspective, there will not be any leaks, as this block is reserved once. There will not be a steady stream of tiny memory requests.

This way you can get a handle on memory. There can be other ways of course, more complicated. Like reference counting and other tricks that garbage collectors use. If OS has garbage collection built-in, leaks can be reduced (although not eliminated, because it's still easy for an app to create data structures which it doesn't need), but at least the entire class of leaks from forgetting to free memory symmetrically with allocating it will go away.

5

u/jacques_chester Apr 04 '10

Why not design an OS that prohibits memory leaks? For example, an app must allocate all its memory at once upon startup and is not allowed to allocate after that. Then there will be no more leaks.

Hie thee to a book on operating systems and read up on fragmentation.

The short answer is: your solution is guaranteed to work. However it is wasteful of resources. Very wasteful. Extremely wasteful. And for bonus points, it makes bugs more likely because now everyone has to write nasty gymnastic code to code with fixed memory limits.

→ More replies (18)

3

u/[deleted] Apr 04 '10

"sorry, you can't view that PDF, it's bigger than the buffer we set up at start time"?

3

u/dsucks Apr 04 '10

Mac OS 7 worked like this and it sucked. Your app would run out of memory, quit and you had to edit settings to start it with larger chunk of ram, if you still had contiguous chunk of right size.

2

u/FooBarWidget Apr 04 '10

Many apps don't know how much memory they're going to need until after the fact. Consider for example a web browser. How much memory do you think it's going to need? 10 MB? What if you're trying to view an 11 MB .JPG file then?

Even if it's possible, many app developers simply aren't going to do it. Most app developers will just be lazy and allocate all available free memory at startup.

1

u/mariox19 Apr 05 '10

You have to manually manage memory on the iPhone (retain-release), while Android development is done in Java, if I'm not mistaken. Perhaps once Apple brings its custom processor used in the iPad to both the iPhone and iPod Touch, it may be able to enable Cocoa's memory management on those platforms. Maybe developers will be allowed to create multitasking applications if they use memory management.

(Yes, it's a lot of ifs, but I'm trying to figure out the implications of what you're saying.)

→ More replies (3)

5

u/chedabob Apr 04 '10

My 2 cents: Apple are working on it, and they'll release when it's up to the standard of the rest of the OS.

1

u/[deleted] Apr 05 '10

Like copy/pasta!

2

u/Peaker Apr 04 '10

These bundles he's describing are simply an alternative implementation of "swap".

2

u/White_Hamster Apr 04 '10

I suspect its because there's no hard drive. I suspect its because there's no hard drive. I suspect it's because there's no memory. Dude, we get it. This was lame, machines with less memory and slower processors have multitasked for 15 years. Apple leaving things out does not make it a technical limitation. And what basis is there that they will release functionality later? The fact that you can make an operating system do it? Welcome to every operating system er released. This isn't groundbreaking tech thy have to research

2

u/zingbat Apr 05 '10

I call bullshit. Simple example of multitasking that the iphone and ipod touch already do - When you initiate a download and install from the AppStore - you can launch another application and use it while it is downloading/installing in the background.

That right there tells me basic multitasking is still possible in the OS. If only apple got off its ass and listened to its users.

2

u/Almostprefect Apr 05 '10

I'll probably get down voted for this but I think their battery life claims are true. I use an itouch and an HTC hero and every time i have several applications running on my hero the battery drains very quickly. It makes a lot of sense that while these devices have a lot of horsepower they weren't designed to run hot all the time.

→ More replies (2)

2

u/CritterM72800 Apr 05 '10

FWIW, this question was answered by an Apple employee in an IAmA: link

10

u/clumma Apr 04 '10 edited Apr 04 '10

I love pundits who are completely clueless about Apple design decisions. You think Apple couldn't have given the device whatever hardware necessary to support multitasking, if it were a priority?1

The iPad is the culmination of Apple's 30-year quest to bring about the invisible computer. There is no computer, there is only a purpose-designed tool (app). Multitasking destroys this illusion, because the thing managing the multitasking must be a computer.

They will probably add multitasking, but not before they have broken people of the notion that it's a computer.

The iPad lacks many other features besides multitasking. They will be added as soon as they will not detract from the laser-like focus Apple is creating around the use cases they feel are most significant.

1 Edit: More accurately, they wouldn't ship if they couldn't. Apple will never ship a device where technology constrains the design. iPad forerunners were taken through the entire hardware eng process to ramp-ready several times over the last few years and killed because of technology constraints. No other company does this, but other companies are clueless.

11

u/[deleted] Apr 04 '10

I'm not sure why you think multitasking, of all things, destroys the illusion of invisibility. How does multitasking confront you with the 'computerness' of the iPad, whereas installing, uninstalling, launching, and terminating applications does not?

Keep in mind, too, that many nonelectric objects feature something akin to multitasking support. For example, you can add a contact to your phone book, flip to the back to check the list of country codes, and then flip back and complete your entry. You can start the New York Times crossword, get stuck, read an article in the travel section, then resume the puzzle where you left off.

Finally, the OP claims that Apple themselves cited hardware issues as the reason for the lack of multitasking support. If what you say is true, why wouldn't Apple say so?

3

u/clumma Apr 04 '10 edited Apr 04 '10

Apple says all kinds of stuff like that. The first iPhone was Edge instead of 3G because of "battery life". You expect them to take the time to exit soundbyte mode to explain their competitive advantage in painstaking detail?

We know multitasking engenders an entire regime of use, namely "multitasking". I don't think I need to explain this. They don't want iPads used this way.

Edit: Case in point: http://www.engadget.com/2010/04/08/iphone-os-4-not-coming-to-the-ipad-until-the-fall/

iPhone this summer, iPad this fall, yet the iPad has the more capable hardware. To understand it, you have to understand that Apple is trying to make a market, not sell into one.

Editt: Or this: http://www.engadget.com/2010/04/08/jobs-if-you-see-a-stylus-or-a-task-manager-they-blew-it/

→ More replies (2)

1

u/mdw Apr 04 '10 edited Apr 04 '10

They will probably add multitasking, but not before they have broken people of the notion that it's a computer.

I would say it is more because they have people with their own notions of what they want to do with the device. On my little puny Nokia E51 I occasionally run an IRC client. I just cannot imagine how to do this efficiently without the ability to background the client and do some other stuff (like finding phone number, going to web etc.) Another example: sometimes I use my E51 as a GPS track logger -- I start the app, it starts recording the track to microSD card and then I can background it with a press of a button (extremely complicated UI, you need to know exactly one button to be able to background and foreground an application -- oh the horrors of added complexity). As I understand it, neither of these two uses can be done on an iPhone.

2

u/[deleted] Apr 04 '10

That's what I cane here to say. GPS tracking on a Nokia e71 is pretty nice. I always have to mess with the Mrs' Nokia when we go places because my iPhone will not write a text file in the background. RIM managed to figure it out and I expected background apps to run when I switched to the iPhone. I spent a few days at first getting all sorts of frustrated with the iPhone trying to make the apps work in the background before figuring out that this was not possible. What a disappointment.

→ More replies (4)

3

u/[deleted] Apr 04 '10

i've seen devices with a thousand times less memory and a thousand times less processing power that have true preemptive multitasking. there are no excuses. They just don't care for it.

The era of optimized software/hardware engineering is over. Very few people/teams are eager to spend resources for such optimizations. Now silicon is relatively cheap and 95% of users don't even understand that displaying a list of contacts should be instantaneous... let alone that the devices should be able to be programmed on the spot, easily and safely.

4

u/[deleted] Apr 04 '10

Apple says they do not support multitasking because it is a hamper to stability and a drain on battery life.

Am I the only one that thinks this is a horrible statement to give about one's own device. It's saying we and the product we designed just can't handle multitasking.

1

u/xyroclast Apr 04 '10

I don't see why multitasking should be any more of a drain on battery life than non-multitasking. In the end, it's still a steady stream of commands entering the processor, whether it comes from one app or from several.

1

u/SharkUW Apr 05 '10

Applications spend most of their time idling, waiting for input. Modern CPUs will go into lower power states when numbers don't need grinding. Running 3 apps, although none of them will be doing anything for the most part, will double if not triple the CPU load while idling. That has drastic effects on battery life.

→ More replies (12)

5

u/rjcarr Apr 04 '10 edited Apr 04 '10

have limited memory (256MB in the current incarnations) and no hard drive. No hard drive means no swap file.

What? This is the basis of his argument and it makes no sense. The swap can (and probably does) exist on the flash memory, which is just taking the place of the hard drive.

So is this guy completely wrong or am I missing something?

→ More replies (3)

3

u/f2u Apr 04 '10

Lack of swap space is certainly not the reason. Modern systems don't really need swap space, either, it's just there for historic reasons. Chances are that once the system starts swapping, it soon does so heavily, and it's difficult to bring it back to working state at this point anyway. So you better not use that swap space even if it is there.

MacOS had static, a priori allocation of memory to applications, and Apple could resurrect this and prevent the user from launching more applications than available RAM would support. Apple could even charge application developers more if their applications need more RAM. This can't be the main issue, really.

On the other hand, CPU and battery usage is dynamic and more difficult to account for. And with a couple of daemons running on the box, it can be difficult to figure out which one is responsible for battery drain. (For instance, one daemon might cause cache flushes, slowing down another one, which then might appear misleadingly as the main CPU hog.) No daemons means that the user can attribute battery drain to a single application.

3

u/xyroclast Apr 04 '10

How is swap space for "historic reasons"? What do you think your computer does when it runs out of RAM? Orders more and installs it while you pour your coffee?

3

u/f2u Apr 04 '10

It gets so slow that I avoid using swap space on my systems. That's the point.

0

u/[deleted] Apr 04 '10

[deleted]

→ More replies (5)

3

u/[deleted] Apr 04 '10

This article is bullshit. Making excuses for Apple. I have my iphone jailbroken and it multitasks fine and almost never rns out of memory enough to kill anything.

2

u/rospaya Apr 04 '10

I'm not a programmer, but the technical argument seems stupid. This is clearly a political decision on Apple's part, not a technical constraint.

I put this video on Youtube a couple of years ago when a guy on a forum (who didn't know what Symbian or S60 is) was determined that there is no way you could multitask on a phone.

That's a 2007 Nokia N81 with less than 50 MB of RAM. It has 8 GB of mass storage and 128 MB of flash memory, so the 8 GB is used exclusively for storage. I opened 15 apps, some of them were doing something in the background and then surfed the web.

2

u/[deleted] Apr 04 '10 edited Apr 04 '10

I totally don't give a shit about Apple products anymore. Palm WebOS has it going on and Android is pretty sweet to. Linux brings the hardware support of Windows and the user friendly front end of OSX.

2

u/Gotebe Apr 04 '10

He's too kind.

Apple doesn't support third party multitasking because Apple is a fiddle bitch and is just trying to hide this behind technical reasons.

14

u/thedragon4453 Apr 04 '10

Yes, that has got to be right. They don't want to support multitasking because they don't want to sell more phones, and like having it be one of the few things that android can hang over their heads.

You know, with the release of the iPad, there has been an awful lot of Apple bashing, but could you guys try to pull your heads out of your ass before you comment?

There are a few different reasons why apple isn't currently supporting multitasking. It's no secret that they will hold back some features to sell the latest and greatest. Get bitchy about that if you want, but again, since you have no proof that is what they are doing, you'd still be talking out of your ass.

If you have any experience with backgrounder on a jailbroken first gen or second gen iphone, you know that it runs out of memory, and does just what the guy describes. It kills the app to free memory, and when you get back to it you end up just relaunching it. Which is basically shit for real multitasking. And since the iPhone has a limited amount of RAM, you end up only being able to background one, maybe two apps at a time, depending on the apps, before something is killed.

So they can solve the multitasking problem a few ways:

  1. include more ram, making the device either cost more for the customer, or cut profit. No business wants to take a hit on profit, and I think they view their current price tags as a bit of a sweet spot.

  2. Add swap using the onboard flash, which is also a pretty imperfect solution, since if you are on a low end (say, 8GB) iPhone, you are probably pretty close to using all of that, and may have a very limited amount of swap to use. Which leads right back to the original problem with apps dying.Also, since they have a "fill it up" feature, this is highly probable. Also speculation on my part, but my guess is most of the iPhones out there are 8gb 3g.

  3. Some other clever method. Advanced state saving, similar to the article, hooks into the iPod app (which is allowed real multitasking) for music streaming, etc.

It's also important to note that Apple is quite obviously attempting to stop from problems you see on other platforms:

  1. Battery issues, which do exist. Use a blackberry, WinMo, or a jailbroken iPhone and experience it first hand.

  2. Performance issues - see the last one.

  3. Something that is overly complicated. Whatever apple implements, expect it to be seamless. You won't see a task killer, similar to what exists on Android at the moment.

Last, Apple is a company like any other. They exist to make money. Their branding portrays them as a high end, easy to use brand (whether you agree with whether or not that meshes with reality, that's obviously what they are shooting for). They aren't going to do something that flies in the face of that, lest they lose their core business and end up just another phone maker competing in a race to the bottom.

Once they figure a way to do multitasking in a way that fits with the brand, it will come out. Rest assured they are working on it, because one thing Apple loves to do is come out with something that has existed for years and act like they invented it. My money is on this summer when they announce iPhone 4.0.

2

u/[deleted] Apr 04 '10

I think you're largely correct, but I think the OP meant to say something like this: Apple enjoys a reputation for uniqueness and originality, and they know that it is lucrative to develop apps for their mobile platform. Because of this, they allow themselves to impose frustrating limitations on developers. This isn't because they enjoy pissing off developers. It's simply that their success in marketing the iPad as a one of a kind device allows them to shrug the burden of having to replicate features which are standard among other devices in its class. They can simply claim that whoever is expecting the feature hasn't understood what the iPad is truly about.

→ More replies (2)

1

u/[deleted] Apr 04 '10

No business wants to take a hit on profit

i hear that dude, but--they might be taking a hit on profit-per-unit, but if they eliminate "one of the few things that android can hang over their heads" as you put it, i suspect they would gain in profit overall.

1

u/Gotebe Apr 04 '10

They don't want to support multitasking because they don't want to sell more phones, and like having it be one of the few things that android can hang over their heads.

Your premise is wrong. Your premise is that somehow their target market can spot that there's no multitasking and won't buy a device due to that, and that hence Apple will be at a loss.

Unfortunately, that is largely not the case. General public, Apple customers included, is rather clueless, so Apple doesn't care and won't turn around. But inflammatory posts like mine, or other forms of bashing, do a good work of pushing Apple, and other vendors in a similar position, to doing a better work.

It's as simple as that: iPhone or iPad are not in a particularly tech-savvy, or tech-demanding, market.

It kills the app to free memory, and when you get back to it you end up just relaunching it. Which is basically shit for real multitasking.

OK, but perhaps that's not how it should work, then? Perhaps an OOM killer is not suitable for such a device? And perhaps Apple should spend more time ensuring actual quality of code in apps in AppStore instead of targeting them by functionality?

1

u/willcode4beer Apr 05 '10

You make a good argument but, Palm managed to make it work well over 10 years ago with much less RAM and CPU. Also, having multiple applications is something Blackberry users have taken granted, for years now.

I'd bring up WinCE but, MS can barely get multi-tasking to work on the desktop so, I think they are a bad example.

Essentially the issue is, Apple wants too much control over the entire experience. They need to lighten up, and gasp trust their users to create their own experience. Sometimes users will do dumb things. It's okay, that's how they learn.

→ More replies (1)

0

u/[deleted] Apr 04 '10

[deleted]

→ More replies (2)

1

u/xyroclast Apr 04 '10

What's a fiddle bitch?

2

u/cmschmidt Apr 04 '10

My iPhone multitasks just fine and has for years now...It's called backgrounder...

8

u/lizardlike Apr 04 '10

Backgrounder with multiflow = fantastic multitasking.

I could see why they couldn't add it as a normal feature though I suppose, because if you load dozens of apps with backgrounder - the phone crashes (well, soft resets). The average user might not be so cautious with only backgrounding a few apps at a time.

2

u/kubalaa Apr 04 '10

Multiflow looks like a less polished version of Palm Pre multitasking.

→ More replies (3)

3

u/q3k_org Apr 04 '10

Yep, I have it too. But let's not lie to ourselves - it's pretty unstable.

2

u/secretoftheeast Apr 04 '10

I have had moderate luck with backgrounder, on my 3G. Specifically, I can't seem to keep Pandora backgrounded while I'm using Safari. It seems like the OOM killer (as the article describes) kills it pretty quick once I start doing any sort of real surfing. I'm curious: how do you generally multitask with it?

2

u/cmschmidt Apr 04 '10

I have the 3GS, but I don't really use Safari all that much and when I do I don't really have any problems (Not never, I've definitely experienced the OOM killer, but very rarely). I mostly use it for checking/writing emails or text messages, checking the weather, other medial tasks that I could do while listening to the iPod.

1

u/hughk Apr 04 '10

Many problems with earlier versions of Windows Mobile came about because of multitasking - but it came down to a model which had only paper walls between processes - but no swap space as such was needed.

1

u/Moylander Apr 04 '10

I clicked on this, and figured it would be an illustration involving hamsters.

1

u/_ex_ Apr 04 '10

so good for the nexus one, the stupid thing is google don't sell it to my country: Peru

1

u/funkah Apr 04 '10

This isn't written in stone, the next version of the OS reportedly supports multitasking. It's not so much a technical question as a question of how to design the interface for the feature. Same as copy/paste.

Also the same as copy/paste is how tired I am of people making way too much of this feature. Apple obviously likes to take their time designing such features, either deal with it or use something else.

1

u/Knute5 Apr 04 '10

iPhone/Pad will multitask down the road. Apple's just being super conservative about stability and simplicity. When you look at all the things these gadgets DO do, it's up to you as the buyer to decide if the current omissions are a dealbreaker. Apparently more than enough folks don't care...

1

u/esotericsean Apr 04 '10

I have multitasking and proswitcher on my 3gs and IT IS TEH AWESOME. But yeah, I can see why most people don't really need it and why Apple chooses to not give it to people.

1

u/komali_2 Apr 04 '10

Except my jailbroken iphone does multi-task, and does so quite well.

1

u/ralf_ Apr 04 '10

Dear fellow redditors, if anyone of you don't like their iPad, could you please send it per FedEx to europe? I will pay (Paypal) the price + shipping plus a $50 premium.

3

u/[deleted] Apr 04 '10

As if I would trust you again, I already sent 10 thousand U.S. dollars just like you asked and I still haven't received the 1 million U.S. dollars you promised.

1

u/paradox460 Apr 04 '10

Personally, if apple just added a services system, it would alleviate many of the complaints people had with the device. Most people just want to use an app that can retort their location data or something like a log of their music playing apps. True multitasking, while useful, is often more than what's needed.

Don't be mistaken, I'm by no means an apple fanboy, I wrote this on a droid.

1

u/echo_chamber Apr 04 '10

Seriously it doesn't take a rocket scientist to ask yourself why would a user need to multitask on a phone?

1

u/hapemask Apr 05 '10

I have an iPhone (jailbroken) and couldn't care less about multitasking. I've tried all of the various multitasking switchers and stuff that provides nice Backgrounder frontends but in the end I just don't use it.

Think hard about how often you honestly want to use more than one app at the same time. There's no screen real estate anyway as it is, I don't feel like cluttering it up more.

1

u/insomniac84 Apr 05 '10

Leave it to apple to convince people a lack of multitasking has a some kind of technical reason behind it.

The dell axim I got in 2003 multitasked just fine. In fact, windows mobile made it so apps don't close. Once an app loads it stays loaded no matter what else you do. Battery power, processing power, and memory were not an issue in the early 00s. Yet apple wants to make the claim in 2010. Very sad.

1

u/[deleted] Apr 05 '10

So basically you can't multitask because it has slightly more memory than a TI-83. Priceless!

1

u/bbibber Apr 05 '10

Side note : a modern smartphone these days has only 128MB-256MB ram? Why is that not more? Can't imagine it being price problem. Is it power usage? Anyone have a clue?

1

u/neonblue2 Apr 04 '10

I'm not saying I'm an expert on the matter nor have I researched into it, but I'm pretty sure the "Page Ins" and "Page Outs" section of iStat on my iTouch and iPhone refers to virtual memory.

0

u/[deleted] Apr 04 '10

[deleted]

1

u/Wavicle Apr 04 '10

True, but neonblue2 specifically mentioned paging.

1

u/johnasmith Apr 04 '10

tl;dnr No hard drive for swap, limited ram.

1

u/[deleted] Apr 04 '10

Reddit has been full of shit articles that are just flat out incorrect this last week. A few days ago I had to correct a blog post that was implying you could install an x64 OS on an old single core Pentium.

1

u/thebuccaneersden Apr 04 '10

The Windows 7 phone won't have multi-tasking or copy & paste. And no one bats an eye.

3

u/xyroclast Apr 04 '10

Because nobody wants a Windows 7 phone

1

u/FlorentG Apr 04 '10

You're wrong, WinMo 7 will have C&P

1

u/notforthebirds Apr 04 '10

A person close to the den explained that copy & paste is definitely a scenario and feature that the team is putting a lot of thought about and hope to bring to the platform soon after initial release.

So it wont, but it's expected to at some point in the future. Fun.

1

u/thebuccaneersden Apr 04 '10

hope to bring to the platform soon after initial release

→ More replies (3)

1

u/privatehuff Apr 04 '10

The date on the article is wrong

1

u/Edman274 Apr 04 '10

So the article is like: "Now, just stay with me on this one... there's not enough RAM to multitask applications. Did you understand that?

1

u/[deleted] Apr 04 '10

Is it the same reason for which Windows Phone 7 won't?

1

u/[deleted] Apr 04 '10

No. Apple do not allow multitasking, because it would confuse grandma. I know you don't understand this. You think "the more features the better", and I am sure that works for you. So you buy Android. But there are a lot of people who don't get technology, they want easy. And they buy iPhone. I understand that you don't think that anyone could be confused by multitasking, but trust me - they can.

3

u/atheist_creationist Apr 04 '10

Fuck the grandma argument. Multitasking can be an option just as much as grandma isn't going to go wifi war driving. The most advanced abilities of a device, no matter how user friendly, should not be limited to grandma.

→ More replies (4)

1

u/Andareed Apr 04 '10

So, listening to music and reading a book at the same time is too hard for users?

1

u/notforthebirds Apr 04 '10

Great example! You can do that :P

1

u/xyroclast Apr 04 '10

Then they should make a "grandma" model and give us the functionality we want. Today's users don't want an experience tailored to the lowest common denominator of technical skill.

1

u/prof_hobart Apr 04 '10

What would happen if third-party applications could multitask?

The user would be able to switch happily between them exactly like I already do on my iPhone with Backgrounder and ProSwitcher.

Any article that talks about multitasking on the iPhone without talking about how it works on jailbroken phones is not worth reading.

1

u/j_mcc99 Apr 04 '10

"No hard drive means no swap file."

Wow, this is pure crap. DO NOT READ.

1

u/[deleted] Apr 04 '10

Except it appears that iPhone OS 4 will add muti-tasking?

1

u/dilithium Apr 04 '10

Article: wrong. It's a UI issue, like copy & paste. The iPad will need multitasking to reach it's potential, but having had an iPhone since day 1, I'm not convinced - the iPhone needs to be faster and higher res more than it needs multitasking.

1

u/robertcrowther Apr 04 '10

it is hard to allow multitasking in a system with no swap and a limited amount of memory

I wonder what my Amiga was doing back in the eighties then? Good job technology has moved on in 25 years.

1

u/ipeev Apr 04 '10

This explanations are strange. Why "Thus, if the background applications consumed too much memory, the operating system would have to kill them" ? If there is no memory then malloc will fail and thats it. Nobody has to kill any applications?!

This whole "explanation" is somehow fishy.

3

u/otterley Apr 04 '10

Because critical daemons (e.g. the phone subsystem, mail poller) must always run and thus should not be expected to survive malloc() failures. The solution is to kill the non-critical software to free the memory.

→ More replies (1)

1

u/akallio9000 Apr 04 '10

Ask some programmer from 15 years ago if 256Mb of memory is "too limited" to multitask. What are they doing, running enterprise databases?

-1

u/marjorie_L Apr 04 '10

Because Apple users are too stupid to run more than one app at a time or think about more than one ( usually dumb ) thing at a time.

Isn't that obvious.

0

u/Devilboy666 Apr 04 '10

iPad has no multitasking cause 'regular' people care more about a device that's always fast than a device that can multitask.

2

u/mdw Apr 04 '10

Of course, regular people love to exit their e-mail client, or their IM client, or whatever they are doing at the moment to look up something on the web...

The argument that "regular users" don't care about multitasking is completely silly. They may not immediately recognize the usefulness of multitasking when asked, but it does not mean it is not useful for them. I imagine that CP/M users did not care about multitasking, but somehow, we ended up with operating systems that can multitask.

→ More replies (1)

-1

u/smeenz Apr 04 '10

So essentially, they built a big palm pilot ?

-1

u/[deleted] Apr 04 '10

Really, multitasking in the user interface in this kind of a device is way overrated.

Seriously. It adds to the technical complexity, UI complexity, and only helps in making one's attention deficit disorder stronger.

(and I don't even like Apple)

2

u/mdw Apr 04 '10

The multitasking is already there on the OS kernel level, so not much technical complexity needs to be added. If user has no use for multitasking, they don't need to use it.

2

u/ubernostrum Apr 04 '10

Really, multitasking in the user interface in this kind of a device is way overrated.

Pretty much. As far as I can tell, shipping a Pandora client with the phone (thus avoiding the ban on third-party multitasking) or granting an exemption to Pandora, and only Pandora, would deal with approximately 95% of the use cases people bring up for wanting multitasking on the iPhone/iPad/etc.

The other 5% would be dealt with by an IM client, but the notification system's already getting close enough that I don't see people complain so much about it.

1

u/xyroclast Apr 04 '10

Yeah, I hate being able to switch between my email and the document I'm working on, while listening to music. That really complicates my life. </sarcasm>

1

u/[deleted] Apr 04 '10

You can do all of these things.

0

u/p3ngwin Apr 04 '10

Thus, if the background applications consumed too much memory, the operating system would have to kill them. But the user would expect that he or she could switch back to an old application, and it would still be running where it was left. He or she certainly doesn’t expect applications to just die every time a new application is run, losing state and even data.

why not simply ask the user?

  • not enough memory to run app, please free memory then try again.

6

u/StuartLeigh Apr 04 '10

because my mother has an iPhone, and honest to god if this popped up on her screen, she would hold the phone at arms length like it was poisoned, call me on her landline, and ask whether she had broken it. Like it or not, we are not apple's target audience or main user base.

2

u/notforthebirds Apr 04 '10

You nailed it :).

1

u/molslaan Apr 04 '10 edited Apr 04 '10

I don't get it either. My pc multitasks perfecly fine with its 256 MB RAM. And it doesn't need to reload an internet page every time I switch a tab in firefox

0

u/skare Apr 04 '10

If they support, no one would buy Mac any more. thats a dent to their sales. (i Think, thats one of the reasons.)

0

u/Wadsworth_The_Butler Apr 04 '10

All the comment: Ignorant people second guessing. It is a design choice that realizes that all app developers would want all their apps running all the time. This give jurisdiction over the performance of the device over to STRANGERS. Much like reddit hands over the keys to reddit.com to random users who become mods.

Also, it CAN multi-task, just get a multi-tasking browser app for the iPad, and move live webapps around, like facebook chat, youtube video, and reddit, all at the same time, all multi-tasking.

0

u/lysergical Apr 04 '10

Downvoted for cluelessness. iPhones can multitask; several apps do now. And jailbroken phones can run backgrounder and multitask just fine. That doesn't mean that when all the apps start using a lot of memory things slow down like on Android phones.

-1

u/uncreative_name Apr 04 '10

tl;dr: droid supports multitasking by running things like it's an emulator that quicksaves, apple doesn't. droid does.