Currently, with Mac OS X 10.1.5, if I close my iBook in OS X, it goes to sleep. Unconditionally. There is no way I can prevent it going to sleep and keep it running w/ just the screen dimmed and closed. (If you know a way, pls email me. q@ropersonline.com)
On this Apple page, under I/O and...