http://twitter.com/jobias
XBL GamerTag: jobiasRKD
I finished an assignment for my Operating Systems class about a week ago that dealt with pthreads for a simple web server. I’m looking through the iPhone SDK and watching some of the developer videos, and I’m realizing that the iPhone also uses pthreads. Is the iPhone even multi-threaded? Can my iPhone run my web server assignment? I’m reading that the iPhone won’t run anything in the background, so obviously I’d have to excise the daemonizing part of my code, but that’d take two seconds to do. And obviously I wouldn’t be able to serve “files” per se, since the iPhone uses no filesystem in the sense that most web servers do. But supposing I wrote something that used SQLite to retrieve web pages, I bet my code could run on the iPhone. So then I could retrieve files from my iPhone on any web browser hosted in a computer in wifi range of an iPhone.
That’d be pretty awesome.
What’s not awesome? My sore throat/flu. I feel like shit.