0

I have to do some update operation on the background. Because it takes so many times. Therefore I shouldn't wait for this operation. User should send any different comment during the update operation.

My OS is Linux and I use C programing Lang. as far as my search, I have to use fork() function for this.

Any different idea?

ceyun
  • 351
  • 4
  • 14

1 Answers1

0

If you want to do things parallelly, multi-process(fork) or multi-thread(pthread) could be used.

You can fork a child process to do the update operation, or you can use pthread_create to do the samething.

D3Hunter
  • 1,329
  • 10
  • 21