If you are looking for a threading solution on the DS a port of DarkPhantom has been made available. The thread dispatcher replaces the standard interrupt dispatcher provided by libnds at the moment so beware of compatibility issues.
Thanks to http://www.drunkencoders.com for the news.