Title: WordPress and pthreads
Last modified: May 4, 2017

---

# WordPress and pthreads

 *  [Bushstar](https://wordpress.org/support/users/bushstar/)
 * (@bushstar)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-and-pthreads/)
 * Hi, I know this is probably not a good idea but I want to know how to make this
   work anyway. In a WordPress plugin I have the following code.
 *     ```
       class Test_WP extends Thread {
           public function run() {
               update_option('test', 'two');
           }
       }
   
       update_option('test', 'one');
   
       $test_wp = new Test_WP();
       $test_wp->start();
       ```
   
 * The option in the database is set to ‘one’. If I call and require wp–load.php
   in the thread it makes no difference, I thought the thread might not have access
   to the WP functions but no errors have been generated.
 * Any ideas on how to get WordPress multithreaded?

The topic ‘WordPress and pthreads’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 0 replies
 * 1 participant
 * Last reply from: [Bushstar](https://wordpress.org/support/users/bushstar/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-and-pthreads/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
