《并行程序设计导论》PPT.pptVIP

  • 56
  • 0
  • 约2.1万字
  • 约 105页
  • 2017-03-28 发布于江苏
  • 举报
《并行程序设计导论》PPT

What happened? Thus, thread 0’s call to strtok with the third line of the input has apparently overwritten the contents of thread 1’s call with the second line. So the strtok function is not thread-safe. If multiple threads call it simultaneously, the output may not be correct. Copyright ? 2010, Elsevier Inc. All rights Reserved Other unsafe C library functions Regrettably, it’s not uncommon for C library functions to fail to be thread-safe. The random number generator random in stdlib.h. The time conversion function localtime in time.h. Copyright ? 2010, Elsevier Inc. All rights Reserved

文档评论(0)

1亿VIP精品文档

相关文档